Skip to content

fix simple typos #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Array of regression coefficients, dimensions `targets x features`. If an interce
the first feature.

#### `model.betas_and_scores`
Array of regression coefficients, followed by prediction scores on the fitted data, dimensions `targets x (feature + 1)`. If an intercept was fit, it will be the the first feature.
Array of regression coefficients, followed by prediction scores on the fitted data, dimensions `targets x (feature + 1)`. If an intercept was fit, it will be the first feature.

#### `model.models`
Array of individual fitted models, dimensions `1 x targets`.
Expand Down Expand Up @@ -120,7 +120,7 @@ Linear regression through ordinary least squares as implemented in scikit-learn'
#### `CustomRegression(algorithm)`
Use a custom regression algorithm in a mass regression analysis. The provided `algorithm` should operate on single response variables, and must conform to the `scikit-learn` API as follows
- Must implement a `.fit(X, Y)` method that takes a design matrix (`samples x features`) and a response vector and returns an object representing the fitted model.
- The returned fitted model must must have attributes `.coef_` and `.intercept_` that hold the results of the the fit (`.coef_` having dimensions `1 x features` and `.intercept_` being a scalar).
- The returned fitted model must have attributes `.coef_` and `.intercept_` that hold the results of the fit (`.coef_` having dimensions `1 x features` and `.intercept_` being a scalar).
- The returned fitted model must also have methods `.predict(X)` and `.score(X, y)` (`X` having dimensions `new samples x features` and `y` having dimensions `1 x new samples`). The former should return a vector of predictions (dimensions `1 x new samples`) and the former should return a scalar score (likely r-squared).

This allows you to define an algorithm in [`scikit-learn`](https://github.com/scikit-learn/scikit-learn) and then wrap it for mass fitting, for example
Expand Down