协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
supervised-learning【开发与工程】Select, fit, predict, and debug ML-From-Scratch supervised learning estimators.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task involves mlfromscratch.supervised_learning estimators for classical supervised prediction: regression, binary or multiclass classification, trees, ensembles, SVMs, Naive Bayes, LDA, boosting, XGBoost, Perceptron, Neuroevolution, or ParticleSwarmOptimizedNN.
fit, predict, or transform calls.cvxopt, or headless plotting issues in supervised workflows.../unsupervised-learning/.../deep-learning/.../reinforcement-learning/.../../references/package-overview.md and ../../references/troubleshooting.md when they are present.LinearRegression, PolynomialRegression, RidgeRegression, LassoRegression, PolynomialRidgeRegression, ElasticNet, RegressionTree, or GradientBoostingRegressor.LogisticRegression, SupportVectorMachine, Adaboost, LDA, NaiveBayes, KNN, or a tree/ensemble.KNN, ClassificationTree, RandomForest, NaiveBayes, GradientBoostingClassifier, XGBoost, MultiClassLDA for projection, or one-hot neural classifiers.references/model-catalog.md for constructors, method signatures, and label conventions. Do not assume scikit-learn estimator APIs.references/workflows.md for concise regression and classification recipes, including 2-D feature shaping and label conversions.references/troubleshooting.md before changing models. Most failures are shape, label, dependency, NumPy compatibility, or convergence issues.python scripts/run_regression_smoke.py --helppython scripts/run_regression_smoke.py --model linear-gdpython scripts/run_classification_smoke.py --helppython scripts/run_classification_smoke.py --model all-fastX should be a 2-D numeric array of shape (n_samples, n_features). Convert a 1-D feature vector with np.asarray(x).reshape(-1, 1).{-1, 1} for binary tasks; LogisticRegression expects 0/1; tree/KNN/NaiveBayes/boosting models use nominal integer labels; Perceptron and neural optimization wrappers expect one-hot targets from to_categorical.KNN has no fit method; call predict(X_test, X_train, y_train).SupportVectorMachine depends on cvxopt; because the supervised package exports SVM at import time, missing cvxopt can also break package-level supervised imports.divide_on_feature helper and may need the NumPy-compatibility troubleshooting path in current environments.