scikit-learn/tabular-playground
Model description
This is a DecisionTreeClassifier model built for Kaggle Tabular Playground Series August 2022, trained on supersoaker production failures dataset.
Intended uses & limitations
This model is not ready to be used in production.
Training Procedure
Hyperparameters
The model is trained with below hyperparameters.
<details> <summary> Click to expand </summary>
</details>
Model Plot
The model plot is below.
<style>#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f {color: black;background-color: white;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f pre{padding: 0;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-toggleable {background-color: white;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f label.sk-toggleable_label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f label.sk-toggleablelabel-arrow:before {content: "▸";float: left;margin-right: 0.25em;color: #696969;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f label.sk-toggleablelabel-arrow:hover:before {color: black;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-estimator:hover label.sk-toggleablelabel-arrow:before {color: black;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-toggleablecontent {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-toggleablecontent pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f input.sk-toggleablecontrol:checked~div.sk-toggleablecontent {max-height: 200px;max-width: 100%;overflow: auto;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f input.sk-toggleablecontrol:checked~label.sk-toggleablelabel-arrow:before {content: "▾";}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-estimator input.sk-toggleablecontrol:checked~label.sk-toggleablelabel {background-color: #d4ebff;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-label input.sk-toggleablecontrol:checked~label.sk-toggleablelabel {background-color: #d4ebff;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-estimator:hover {background-color: #d4ebff;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-label:hover label.sk-toggleablelabel {background-color: #d4ebff;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-serial::before {content: "";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 2em;bottom: 0;left: 50%;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-item {z-index: 1;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-parallel::before {content: "";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 2em;bottom: 0;left: 50%;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-parallel-item {display: flex;flex-direction: column;position: relative;background-color: white;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-parallel-item:only-child::after {width: 0;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;position: relative;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-label label {font-family: monospace;font-weight: bold;background-color: white;display: inline-block;line-height: 1.2em;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-label-container {position: relative;z-index: 2;text-align: center;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-b8914d13-cacb-404b-89fd-48f0ed8d671f div.sk-text-repr-fallback {display: none;}</style><div id="sk-b8914d13-cacb-404b-89fd-48f0ed8d671f" class="sk-top-container" width="100%"><div class="sk-text-repr-fallback"><pre>Pipeline(steps=[('transformation',ColumnTransformer(transformers=[('loadingmissingvalueimputer',SimpleImputer(),['loading']),('numericalmissingvalueimputer',SimpleImputer(),['loading', 'measurement3','measurement4','measurement5','measurement6','measurement7','measurement8','measurement9','measurement10','measurement11','measurement12','measurement13','measurement14','measurement15','measurement16','measurement17']),('attribute0encoder',OneHotEncoder(),['attribute0']),('attribute1encoder',OneHotEncoder(),['attribute1']),('productcodeencoder',OneHotEncoder(),['productcode'])])),('model', DecisionTreeClassifier(maxdepth=4))])</pre><b>Please rerun this cell to show the HTML repr or trust the notebook.</b></div><div class="sk-container" hidden width="100%"><div class="sk-item sk-dashed-wrapped" width="100%"><div class="sk-label-container" width="100%"><div class="sk-label sk-toggleable"><input class="sk-toggleable_control sk-hidden--visually" id="fe201304-214c-493b-8896-11cea0894f6e" type="checkbox" ><label for="fe201304-214c-493b-8896-11cea0894f6e" class="sk-toggleablelabel sk-toggleablelabel-arrow">Pipeline</label><div class="sk-toggleablecontent"><pre>Pipeline(steps=[('transformation',ColumnTransformer(transformers=[('loadingmissingvalueimputer',SimpleImputer(),['loading']),('numericalmissingvalueimputer',SimpleImputer(),['loading', 'measurement3','measurement4','measurement5','measurement6','measurement7','measurement8','measurement9','measurement10','measurement11','measurement12','measurement13','measurement14','measurement15','measurement16','measurement17']),('attribute0encoder',OneHotEncoder(),['attribute0']),('attribute1encoder',OneHotEncoder(),['attribute1']),('productcodeencoder',OneHotEncoder(),['productcode'])])),('model', DecisionTreeClassifier(maxdepth=4))])</pre></div></div></div><div class="sk-serial"><div class="sk-item sk-dashed-wrapped"><div class="sk-label-container" width="100%"><div class="sk-label sk-toggleable"><input class="sk-toggleable_control sk-hidden--visually" id="19136b49-925c-40a2-b4d1-37039bb014a9" type="checkbox" ><label for="19136b49-925c-40a2-b4d1-37039bb014a9" class="sk-toggleablelabel sk-toggleablelabel-arrow">transformation: ColumnTransformer</label><div class="sk-toggleablecontent"><pre>ColumnTransformer(transformers=[('loadingmissingvalueimputer',SimpleImputer(), ['loading']),('numericalmissingvalueimputer',SimpleImputer(),['loading', 'measurement3', 'measurement4','measurement5', 'measurement6','measurement7', 'measurement8','measurement9', 'measurement10','measurement11', 'measurement12','measurement13', 'measurement14','measurement15', 'measurement16','measurement17']),('attribute0encoder', OneHotEncoder(),['attribute0']),('attribute1encoder', OneHotEncoder(),['attribute1']),('productcodeencoder', OneHotEncoder(),['productcode'])])</pre></div></div></div><div class="sk-parallel"><div class="sk-parallel-item"><div class="sk-item"><div class="sk-label-container" width="100%"><div class="sk-label sk-toggleable"><input class="sk-toggleablecontrol sk-hidden--visually" id="c8ec7f92-b10a-41e7-b673-1239572ea00e" type="checkbox" ><label for="c8ec7f92-b10a-41e7-b673-1239572ea00e" class="sk-toggleablelabel sk-toggleablelabel-arrow">loadingmissingvalueimputer</label><div class="sk-toggleable_content"><pre>['loading']</pre></div></div></div><div class="sk-serial"><div class="sk-item"><div class="sk-estimator sk-toggleable"><input class="sk-toggleablecontrol sk-hidden--visually" id="70fec50e-9c49-4818-a58f-ef8de932035c" type="checkbox" ><label for="70fec50e-9c49-4818-a58f-ef8de932035c" class="sk-toggleablelabel sk-toggleablelabel-arrow">SimpleImputer</label><div class="sk-toggleablecontent"><pre>SimpleImputer()</pre></div></div></div></div></div></div><div class="sk-parallel-item"><div class="sk-item"><div class="sk-label-container" width="100%"><div class="sk-label sk-toggleable"><input class="sk-toggleablecontrol sk-hidden--visually" id="ac8a6641-4222-4b12-b691-928201d9af73" type="checkbox" ><label for="ac8a6641-4222-4b12-b691-928201d9af73" class="sk-toggleablelabel sk-toggleablelabel-arrow">numericalmissingvalueimputer</label><div class="sk-toggleable_content"><pre>['loading', 'measurement3', 'measurement4', 'measurement5', 'measurement6', 'measurement7', 'measurement8', 'measurement9', 'measurement10', 'measurement11', 'measurement12', 'measurement13', 'measurement14', 'measurement15', 'measurement16', 'measurement17']</pre></div></div></div><div class="sk-serial"><div class="sk-item"><div class="sk-estimator sk-toggleable"><input class="sk-toggleable_control sk-hidden--visually" id="a14b63c1-fecb-445e-9a74-8229a531f0ea" type="checkbox" ><label for="a14b63c1-fecb-445e-9a74-8229a531f0ea" class="sk-toggleablelabel sk-toggleablelabel-arrow">SimpleImputer</label><div class="sk-toggleablecontent"><pre>SimpleImputer()</pre></div></div></div></div></div></div><div class="sk-parallel-item"><div class="sk-item"><div class="sk-label-container" width="100%"><div class="sk-label sk-toggleable"><input class="sk-toggleablecontrol sk-hidden--visually" id="80227cfc-e001-4c0d-b495-e4e0631a49d5" type="checkbox" ><label for="80227cfc-e001-4c0d-b495-e4e0631a49d5" class="sk-toggleablelabel sk-toggleablelabel-arrow">attribute0encoder</label><div class="sk-toggleablecontent"><pre>['attribute0']</pre></div></div></div><div class="sk-serial"><div class="sk-item"><div class="sk-estimator sk-toggleable"><input class="sk-toggleable_control sk-hidden--visually" id="c52efc0c-08b7-467a-a0a1-f07cb6cecebc" type="checkbox" ><label for="c52efc0c-08b7-467a-a0a1-f07cb6cecebc" class="sk-toggleablelabel sk-toggleablelabel-arrow">OneHotEncoder</label><div class="sk-toggleablecontent"><pre>OneHotEncoder()</pre></div></div></div></div></div></div><div class="sk-parallel-item"><div class="sk-item"><div class="sk-label-container" width="100%"><div class="sk-label sk-toggleable"><input class="sk-toggleablecontrol sk-hidden--visually" id="6da0ab07-3d41-459c-a8a6-a56960b775f2" type="checkbox" ><label for="6da0ab07-3d41-459c-a8a6-a56960b775f2" class="sk-toggleablelabel sk-toggleablelabel-arrow">attribute1encoder</label><div class="sk-toggleablecontent"><pre>['attribute1']</pre></div></div></div><div class="sk-serial"><div class="sk-item"><div class="sk-estimator sk-toggleable"><input class="sk-toggleable_control sk-hidden--visually" id="b515fbe5-466a-4eb7-84d9-35227a1e862a" type="checkbox" ><label for="b515fbe5-466a-4eb7-84d9-35227a1e862a" class="sk-toggleablelabel sk-toggleablelabel-arrow">OneHotEncoder</label><div class="sk-toggleablecontent"><pre>OneHotEncoder()</pre></div></div></div></div></div></div><div class="sk-parallel-item"><div class="sk-item"><div class="sk-label-container" width="100%"><div class="sk-label sk-toggleable"><input class="sk-toggleablecontrol sk-hidden--visually" id="72c4b8e6-3110-486f-8b33-a7db1f5e822f" type="checkbox" ><label for="72c4b8e6-3110-486f-8b33-a7db1f5e822f" class="sk-toggleablelabel sk-toggleablelabel-arrow">productcodeencoder</label><div class="sk-toggleablecontent"><pre>['productcode']</pre></div></div></div><div class="sk-serial"><div class="sk-item"><div class="sk-estimator sk-toggleable"><input class="sk-toggleable_control sk-hidden--visually" id="f3bfb5a1-317d-4ff4-8dd0-804ef1d7fd61" type="checkbox" ><label for="f3bfb5a1-317d-4ff4-8dd0-804ef1d7fd61" class="sk-toggleablelabel sk-toggleablelabel-arrow">OneHotEncoder</label><div class="sk-toggleablecontent"><pre>OneHotEncoder()</pre></div></div></div></div></div></div></div></div><div class="sk-item"><div class="sk-estimator sk-toggleable"><input class="sk-toggleablecontrol sk-hidden--visually" id="dbcb65f9-3068-4263-9c1c-2e6413804681" type="checkbox" ><label for="dbcb65f9-3068-4263-9c1c-2e6413804681" class="sk-toggleablelabel sk-toggleablelabel-arrow">DecisionTreeClassifier</label><div class="sk-toggleablecontent"><pre>DecisionTreeClassifier(maxdepth=4)</pre></div></div></div></div></div></div></div>
Evaluation Results
You can find the details about evaluation process and the evaluation results.
How to Get Started with the Model
Use the code below to get started with the model.
<details> <summary> Click to expand </summary>
import pickle
with open(decision-tree-playground-kaggle/model.pkl, 'rb') as file:
clf = pickle.load(file)</details>
Model Card Authors
This model card is written by following authors:
huggingface
Model Card Contact
You can contact the model card authors through following channels: [More Information Needed]
Citation
Below you can find information related to citation.
BibTeX:
[More Information Needed]Tree Plot
Confusion Matrix
