{
"name": "data-science/linfa-lab",
"description": "A Rust machine learning template with working examples using Linfa 0.7.1 for classification, regression, and clustering",
"type": "binary",
"files": [
{
"source": "src/main.rs",
"target": "src/main.rs"
},
{
"source": "src/datasets.rs",
"target": "src/datasets.rs"
},
{
"source": "src/models.rs",
"target": "src/models.rs"
},
{
"source": "src/evaluation.rs",
"target": "src/evaluation.rs"
},
{
"source": "Cargo.toml.template",
"target": "Cargo.toml"
},
{
"source": "README.md",
"target": "README.md"
}
],
"dependencies": {
"default": [
"anyhow = \"1.0\"",
"clap = { version = \"4.4\", features = [\"derive\"] }",
"linfa = \"0.7.1\"",
"linfa-linear = \"0.7.1\"",
"linfa-logistic = \"0.7.1\"",
"linfa-trees = \"0.7.1\"",
"linfa-clustering = \"0.7.1\"",
"linfa-datasets = { version = \"0.7.1\", features = [\"generate\"] }",
"ndarray = { version = \"0.15\", features = [\"serde\"] }",
"ndarray-rand = \"0.14\"",
"ndarray-stats = \"0.5\"",
"rand = \"0.8\"",
"rand_xoshiro = \"0.6.0\"",
"csv = \"1.3\"",
"serde = { version = \"1.0\", features = [\"derive\"] }"
]
},
"metadata": {
"category": "Machine Learning",
"level": "Intermediate",
"keywords": ["machine-learning", "classification", "regression", "clustering", "linfa"]
},
"prompts": {
"task": {
"question": "What machine learning task will you be working on?",
"options": ["Classification", "Regression", "Clustering"],
"default": "Classification"
},
"algorithm": {
"question": "Which algorithm would you like to start with?",
"options": ["Linear models", "Decision trees", "Clustering algorithms"],
"default": "Linear models"
},
"dataset_size": {
"question": "What is the expected size of your dataset?",
"options": ["Small (fits in memory)", "Medium (needs batching)", "Large (distributed processing)"],
"default": "Small (fits in memory)"
}
},
"next_steps": [
"๐งช Try the example classification: cd {{project_name}} && cargo run -- classify",
"๐ฒ Run decision tree example: cargo run -- tree",
"๐ Run regression example: cargo run -- regress",
"๐ Run clustering analysis: cargo run -- cluster",
"๐ Run all examples: cargo run -- all",
"๐ See all available commands: cargo run -- help"
]
}