Skip to content

Commit

Permalink
typos fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Frierened committed Dec 10, 2023
1 parent 38d2548 commit 10c4c84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/smartcore-ml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ res/ml-model and res/input-data come preloaded with a trained decision tree clas

## Model Types

It is important to specificy the generic types for each model so that they can be succesfully deserialized. The input data for a trained model is typically formatted as a DenseMatrix, so be sure to add the following import:
It is important to specify the generic types for each model so that they can be successfully deserialized. The input data for a trained model is typically formatted as a DenseMatrix, so be sure to add the following import:
`use smartcore::linalg::basic::matrix::DenseMatrix;`
when using KNN, be sure to add the following import:
`use smartcore::metrics::distance::euclidian::Euclidian;`
Expand All @@ -37,7 +37,7 @@ let model: GaussianNB<{float}, _, DenseMatrix<{float}>, _> = trained_model;
```

```
let model: LogisticRegression<{flaot}, u32, DenseMatrix<{float}>, Vec<u32>> = trained_model;
let model: LogisticRegression<{float}, u32, DenseMatrix<{float}>, Vec<u32>> = trained_model;
```

```
Expand Down

0 comments on commit 10c4c84

Please sign in to comment.