Takes algorithm, train, test, X variables, Y variables, column names required for submission and name of submission file as input and produces an output csv for submitting in the competition.
Project description
# ‘Submission’ Package for various online competitions.
This package helps the user to make submission file in ‘.csv’ format (viz the criterion for most competitions) in a simple way.
Installation:
Run the following to install, #Python pip install submission
How it works?
It takes the algorithm, training dataset, test dataset, X variables, Y variables, column names (particular columns required for submission) and name of submission file (desired by the user) as input and produces an outputs the accuracy , RMSE and Cross-Validation score of that model and in .csv for submitting in the competition.
How to use:
from sklearn.tree import DecisionTreeRegressor DT = DecisionTreeRegressor(max_depth=15, min_samples_leaf=100) submission.modelfit(DT, train_df, test_df, predictors, target, IDcol, ‘DT.csv’)
Output: Model Report Accuracy : 84% RMSE : 2914 CV Score : Mean - 2941 | Std - 20.86 | Min - 2907 | Max - 2975
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for submission-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeabb0d551d4ad2c40ca95a4bf418d8cafeb761a758fe78002e8ff8e10e068a5 |
|
MD5 | d4b1d54ee8376e8bd63b3c0d56f3310e |
|
BLAKE2b-256 | 91dd3875e5f32710f0297b1171dd87828e98ceb461cce7a2a6ec9363eea3585a |