| Crates.io | sklears-neural |
| lib.rs | sklears-neural |
| version | 0.1.0-beta.1 |
| created_at | 2025-10-13 16:02:53.851508+00 |
| updated_at | 2026-01-01 21:39:33.248059+00 |
| description | Neural network implementations for the sklears machine learning library |
| homepage | |
| repository | https://github.com/cool-japan/sklears |
| max_upload_size | |
| id | 1880703 |
| size | 1,548,664 |
Latest release:
0.1.0-beta.1(January 1, 2026). See the workspace release notes for highlights and upgrade guidance.
sklears-neural delivers multilayer perceptrons and neural utility blocks that align with scikit-learn’s neural-network module while embracing Rust’s performance story.
use sklears_neural::MLPClassifier;
use scirs2_core::ndarray::{array, Array1};
let x = array![
[0.0, 0.0],
[0.0, 1.0],
[1.0, 0.0],
[1.0, 1.0],
];
let y = Array1::from(vec![0, 1, 1, 0]);
let mlp = MLPClassifier::builder()
.hidden_layer_sizes(vec![16, 16])
.activation("relu")
.solver("adam")
.max_iter(1000)
.random_state(Some(42))
.build();
let fitted = mlp.fit(&x, &y)?;
let probs = fitted.predict_proba(&x)?;
0.1.0-beta.1.TODO.md.