File size: 4,478 Bytes
6d584c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
LOGO_URL = "assets/banner.png"
PAGE_ICON = "assets/img/logo-sq.png"
BACKGROUND = "assets/img/bg.png"

TEAM_MEMBERS = [
    {"name": "Arpit Sengar", "role": "Developer", "links":["https://www.linkedin.com/in/arpitsengar", "https://github.com/arpy8"]},
    {"name": "Aditya Bhardwaj", "role": "Developer", "links":["https://www.linkedin.com/in/aditya-bhardwaj-3a6437232/", "https://github.com/adityabhardwajjj"]},
    {"name": "Harshit Jain", "role": "Developer", "links":["https://www.linkedin.com/in/harshitjainnn/", "https://github.com/HarshitJainn"]},
    {"name": "Anushka Singh", "role": "Developer", "links":["https://www.linkedin.com/in/harshitjainnn/", "https://github.com/HarshitJainn"]},
    {"name": "Vijeta Srivastava", "role": "Developer", "links":["https://www.linkedin.com/in/vijeta-shrivastava-a8962a244/", ""]},
]

EXCLUDED_MODELS = ['lightgbm', 'catboost', 'xgboost']
MODELS_DICT = {
    ## regressors
    "LinearRegression":"lr",
    "Lasso":"lasso",
    "Ridge":"ridge",
    "ElasticNet":"en",
    "Lars":"lar",
    "LassoLars":"llar",
    "OrthogonalMatchingPursuit":"omp",
    "BayesianRidge":"br",
    "AutomaticRelevanceDetermination":"ard",
    "PassiveAggressiveRegressor":"par",
    "RandomSampleConsensus":"ransac",
    "TheilSenRegressor":"tr",
    "HuberRegressor":"huber",
    "KernelRidge":"kr",
    "SupportVectorRegressor":"svm",
    "KNeighborsRegressor":"knn",
    "DecisionTreeRegressor":"dt",
    "RandomForestRegressor":"rf",
    "ExtraTreesRegressor":"et",
    "AdaBoostRegressor":"ada",
    "GradientBoostingRegressor":"gbr",
    "MLPRegressor":"mlp",
    "DummyRegressor":"dr",
    
    ## classifiers
    "LogisticRegression":"lr",
    "KNeighborsClassifier":"knn",
    "NaiveBayes":"nb",
    "DecisionTreeClassifier":"dt",
    "SVMLinearKernel":"svm",
    "SVMRadialKernel":"rbfsvm",
    "GaussianProcessClassifier":"gpc",
    "MLPClassifier":"mlp",
    "RidgeClassifier":"ridge",
    "RandomForestClassifier":"rf",
    "QuadraticDiscriminantAnalysis":"qda",
    "AdaBoostClassifier":"ada",
    "GradientBoostingClassifier":"gbc",
    "LinearDiscriminantAnalysis":"lda",
    "ExtraTreesClassifier":"et",
    
    # exclusions    
    "ExtremeGradientBoosting":"xgboost",
    "LGBMRegressor":"lightgbm",
    "CatBoostRegressor":"catboost",
}

MODEL_NAME_INFO = {
    "RandomForestClassifier": ["A random forest is a meta estimator that fits a number of decision tree classifiers on various sub-samples of the dataset and uses averaging to improve the predictive accuracy and control over-fitting. Trees in the forest use the best split strategy, i.e. equivalent to passing splitter='best' to the underlying DecisionTreeRegressor. The sub-sample size is controlled with the max_samples parameter if bootstrap=True (default), otherwise the whole dataset is used to build each tree.", 
                               "https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestClassifier.html"],
    "ExtraTreesClassifier": ["An extra-trees classifier is a meta estimator that fits a number of randomized decision trees (a.k.a. extra-trees) on various sub-samples of the dataset and uses averaging to improve the predictive accuracy and control over-fitting. The sub-sample size is controlled with the max_samples parameter if bootstrap=True (default), otherwise the whole dataset is used to build each tree.", 
                             "https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.ExtraTreesClassifier.html"],
    "KNeighborsRegressor": ["KNN regression predicts using nearest neighbors, lacking distribution assumptions. Linear regression assumes a linear relationship and estimates coefficients through OLS. KNN is non-parametric and computationally demanding due to distance computations. Linear regression, parametric and interpretable, requires data to adhere to assumptions like homoscedasticity. KNN is suitable for non-linear data, but choosing K is critical. Linear regression's efficiency and interpretability make it favorable for large datasets with linear relationships, provided assumptions are met.", 
                             "https://scikit-learn.org/stable/modules/generated/sklearn.neighbors.KNeighborsRegressor.html"]
}

MODEL_DETAILS_TEMPLATE = """
##### **Best model:** 
#### {model_name}

###### **Parameters:** <br>
```
{final_model}
```

##### **Description:** <br>
{model_definition}

For more details, check out the following link:<br    
{model_info_link}
"""