Skip to content

Commit

Permalink
Clarify wording
Browse files Browse the repository at this point in the history
Co-authored by: Matt Gregory <matt.gregory@oregonstate.edu>
  • Loading branch information
aazuspan committed Oct 17, 2023
1 parent e2b1678 commit c792a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In addition to their core functionality of fitting, predicting, and scoring, `sk

### Regression and Classification

The estimators in `sknnr` are all initialized with an optional parameter `n_neighbors` that determines how many plots a target plot's attributes will be predicted from. When `n_neighbors>1`, a plot's attributes are calculated as weighted averages of each of its _k_ nearest neighbors. Predicted values can fall anywhere between the observed plot values, making this "regression mode" suitable for continuous attributes (e.g. basal area). To maintain categorical attributes (e.g. dominant species type), the estimators can be run in "classification mode" with `n_neighbors=1`, where each attribute is imputed directly from another plot. To predict a combination of continuous and categorical attributes, it's possible to use two estimators and concatenate their predictions manually.
The estimators in `sknnr` are all initialized with an optional parameter `n_neighbors` that determines how many plots a target plot's attributes will be predicted from. When `n_neighbors` > 1, a plot's attributes are calculated as optionally-weighted averages of each of its _k_ nearest neighbors. Predicted values can fall anywhere between the observed plot values, making this "regression mode" suitable for continuous attributes (e.g. basal area). To maintain categorical attributes (e.g. dominant species type), the estimators can be run in "classification mode" with `n_neighbors` = 1, where each attribute is imputed directly from its nearest neighbor. To predict a combination of continuous and categorical attributes, it's possible to use two estimators and concatenate their predictions manually.

### Independent Scores and Predictions

Expand Down

0 comments on commit c792a92

Please sign in to comment.