How to use the jupyter.create.ml_template.src.formula.notebook_template.Estimator.KNeighborsClassifier.value function in jupyter

To help you get started, we’ve selected a few jupyter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ZupIT / ritchie-formulas / jupyter / create / ml_template / src / formula / notebook_template.py View on Github external
RandomForestClassifier = "RandomForestClassifier"
    SGDClassifier = "SGDClassifier"
    SGDRegressor = "SGDRegressor"
    SVR = "SVR"
    MiniBatchKMeans = "MiniBatchKMeans"
    KMeans = "KMeans"


content = {}
content[Estimator.SVC.value] = {
    "import": "from sklearn.svm import SVC",
    "doc_link": "https://scikit-learn.org/stable\
    /modules/generated/sklearn.svm.SVC.html#sklearn.svm.SVC",
    "evaluation": "classification",
}
content[Estimator.KNeighborsClassifier.value] = {
    "import": "from sklearn.neighbors import KNeighborsClassifier",
    "doc_link": "https://scikit-learn.org/stable/modules/neighbors.html",
    "evaluation": "classification",
}
content[Estimator.RandomForestClassifier.value] = {
    "import": "from sklearn.ensemble import RandomForestClassifier",
    "doc_link": "https://scikit-learn.org/stable\
    /modules/generated/sklearn.ensemble.Random\
    ForestClassifier.html#sklearn.ensemble.RandomForestClassifier",
    "evaluation": "classification",
}
content[Estimator.SGDClassifier.value] = {
    "import": "from sklearn.linear_model import SGDClassifier",
    "doc_link": "https://scikit-learn.org/\
    stable/modules/generated/sklearn.linear\
    _model.SGDClassifier.html#sklearn.\