Skip to content

Commit

Permalink
run fmt. fix changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-moriondo-agreena committed Mar 4, 2024
1 parent c1b0b53 commit 3fcd722
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Added
- WARNING: Breaking changes!
- `DenseMatrix` constructor now returns `Result` to avoid user instantiating inconsistent rows/cols count
- Every call to `DenseMatrix::new` and `DenseMatrix::from_2d_array` needs to be unwrapped with `unwrap()`, see tests
- `DenseMatrix` constructor now returns `Result` to avoid user instantiating inconsistent rows/cols count. Their return values need to be unwrapped with `unwrap()`, see tests

## [0.3.0] - 2022-11-09

Expand Down
3 changes: 2 additions & 1 deletion src/tree/decision_tree_classifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,8 @@ mod tests {
&[0., 0., 1., 1.],
&[0., 0., 0., 0.],
&[0., 0., 0., 1.],
]).unwrap();
])
.unwrap();
let y: Vec<u32> = vec![1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0];
let tree = DecisionTreeClassifier::fit(&x, &y, Default::default()).unwrap();
assert_eq!(
Expand Down

0 comments on commit 3fcd722

Please sign in to comment.