Upload . with huggingface_hub
Browse files- README.md +124 -0
- config.json +57 -0
- skops47mqlzp0 +0 -0
README.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: sklearn
|
| 3 |
+
tags:
|
| 4 |
+
- sklearn
|
| 5 |
+
- skops
|
| 6 |
+
- tabular-regression
|
| 7 |
+
model_file: skops47mqlzp0
|
| 8 |
+
widget:
|
| 9 |
+
structuredData:
|
| 10 |
+
acceleration:
|
| 11 |
+
- 12.0
|
| 12 |
+
- 19.0
|
| 13 |
+
- 20.7
|
| 14 |
+
cylinders:
|
| 15 |
+
- 8
|
| 16 |
+
- 4
|
| 17 |
+
- 4
|
| 18 |
+
displacement:
|
| 19 |
+
- 307.0
|
| 20 |
+
- 97.0
|
| 21 |
+
- 98.0
|
| 22 |
+
horsepower:
|
| 23 |
+
- '130'
|
| 24 |
+
- '88'
|
| 25 |
+
- '65'
|
| 26 |
+
model year:
|
| 27 |
+
- 70
|
| 28 |
+
- 73
|
| 29 |
+
- 81
|
| 30 |
+
origin:
|
| 31 |
+
- 1
|
| 32 |
+
- 3
|
| 33 |
+
- 1
|
| 34 |
+
weight:
|
| 35 |
+
- 3504
|
| 36 |
+
- 2279
|
| 37 |
+
- 2380
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
# Model description
|
| 41 |
+
|
| 42 |
+
This is a passive-agressive regression model used for continuous training. Find the notebook [here](https://www.kaggle.com/code/unofficialmerve/incremental-online-training-with-scikit-learn/)
|
| 43 |
+
|
| 44 |
+
## Intended uses & limitations
|
| 45 |
+
|
| 46 |
+
This model is not ready to be used in production. It's trained to predict MPG a car spends based on it's attributes.
|
| 47 |
+
|
| 48 |
+
## Training Procedure
|
| 49 |
+
|
| 50 |
+
### Hyperparameters
|
| 51 |
+
|
| 52 |
+
The model is trained with below hyperparameters.
|
| 53 |
+
|
| 54 |
+
<details>
|
| 55 |
+
<summary> Click to expand </summary>
|
| 56 |
+
|
| 57 |
+
| Hyperparameter | Value |
|
| 58 |
+
|---------------------|---------------------|
|
| 59 |
+
| C | 0.01 |
|
| 60 |
+
| average | False |
|
| 61 |
+
| early_stopping | False |
|
| 62 |
+
| epsilon | 0.1 |
|
| 63 |
+
| fit_intercept | True |
|
| 64 |
+
| loss | epsilon_insensitive |
|
| 65 |
+
| max_iter | 1000 |
|
| 66 |
+
| n_iter_no_change | 5 |
|
| 67 |
+
| random_state | |
|
| 68 |
+
| shuffle | True |
|
| 69 |
+
| tol | 0.001 |
|
| 70 |
+
| validation_fraction | 0.1 |
|
| 71 |
+
| verbose | 0 |
|
| 72 |
+
| warm_start | False |
|
| 73 |
+
|
| 74 |
+
</details>
|
| 75 |
+
|
| 76 |
+
### Model Plot
|
| 77 |
+
|
| 78 |
+
The model plot is below.
|
| 79 |
+
|
| 80 |
+
<style>#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e {color: black;background-color: white;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e pre{padding: 0;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-toggleable {background-color: white;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e label.sk-toggleable__label-arrow:before {content: "▸";float: left;margin-right: 0.25em;color: #696969;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e 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-1c3ea46c-0796-439d-856b-fedc4a20d47e 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-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-estimator:hover {background-color: #d4ebff;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-serial::before {content: "";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 2em;bottom: 0;left: 50%;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-item {z-index: 1;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-parallel::before {content: "";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 2em;bottom: 0;left: 50%;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-parallel-item {display: flex;flex-direction: column;position: relative;background-color: white;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-parallel-item:only-child::after {width: 0;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e 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-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-label label {font-family: monospace;font-weight: bold;background-color: white;display: inline-block;line-height: 1.2em;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-label-container {position: relative;z-index: 2;text-align: center;}#sk-1c3ea46c-0796-439d-856b-fedc4a20d47e 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-1c3ea46c-0796-439d-856b-fedc4a20d47e div.sk-text-repr-fallback {display: none;}</style><div id="sk-1c3ea46c-0796-439d-856b-fedc4a20d47e" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>PassiveAggressiveRegressor(C=0.01)</pre><b>Please rerun this cell to show the HTML repr or trust the notebook.</b></div><div class="sk-container" hidden><div class="sk-item"><div class="sk-estimator sk-toggleable"><input class="sk-toggleable__control sk-hidden--visually" id="13f821ce-da7c-4825-b16d-1394a33b5711" type="checkbox" checked><label for="13f821ce-da7c-4825-b16d-1394a33b5711" class="sk-toggleable__label sk-toggleable__label-arrow">PassiveAggressiveRegressor</label><div class="sk-toggleable__content"><pre>PassiveAggressiveRegressor(C=0.01)</pre></div></div></div></div></div>
|
| 81 |
+
|
| 82 |
+
## Evaluation Results
|
| 83 |
+
|
| 84 |
+
You can find the details about evaluation process and the evaluation results.
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
| Metric | Value |
|
| 89 |
+
|----------|---------|
|
| 90 |
+
|
| 91 |
+
# How to Get Started with the Model
|
| 92 |
+
|
| 93 |
+
Use the code below to get started with the model.
|
| 94 |
+
|
| 95 |
+
```python
|
| 96 |
+
import joblib
|
| 97 |
+
import json
|
| 98 |
+
import pandas as pd
|
| 99 |
+
clf = joblib.load(skops47mqlzp0)
|
| 100 |
+
with open("config.json") as f:
|
| 101 |
+
config = json.load(f)
|
| 102 |
+
clf.predict(pd.DataFrame.from_dict(config["sklearn"]["example_input"]))
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
# Model Card Authors
|
| 107 |
+
|
| 108 |
+
This model card is written by following authors:
|
| 109 |
+
|
| 110 |
+
[More Information Needed]
|
| 111 |
+
|
| 112 |
+
# Model Card Contact
|
| 113 |
+
|
| 114 |
+
You can contact the model card authors through following channels:
|
| 115 |
+
[More Information Needed]
|
| 116 |
+
|
| 117 |
+
# Citation
|
| 118 |
+
|
| 119 |
+
Below you can find information related to citation.
|
| 120 |
+
|
| 121 |
+
**BibTeX:**
|
| 122 |
+
```
|
| 123 |
+
[More Information Needed]
|
| 124 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"sklearn": {
|
| 3 |
+
"columns": [
|
| 4 |
+
"cylinders",
|
| 5 |
+
"displacement",
|
| 6 |
+
"horsepower",
|
| 7 |
+
"weight",
|
| 8 |
+
"acceleration",
|
| 9 |
+
"model year",
|
| 10 |
+
"origin"
|
| 11 |
+
],
|
| 12 |
+
"environment": [
|
| 13 |
+
"scikit-learn"
|
| 14 |
+
],
|
| 15 |
+
"example_input": {
|
| 16 |
+
"acceleration": [
|
| 17 |
+
12.0,
|
| 18 |
+
19.0,
|
| 19 |
+
20.7
|
| 20 |
+
],
|
| 21 |
+
"cylinders": [
|
| 22 |
+
8,
|
| 23 |
+
4,
|
| 24 |
+
4
|
| 25 |
+
],
|
| 26 |
+
"displacement": [
|
| 27 |
+
307.0,
|
| 28 |
+
97.0,
|
| 29 |
+
98.0
|
| 30 |
+
],
|
| 31 |
+
"horsepower": [
|
| 32 |
+
"130",
|
| 33 |
+
"88",
|
| 34 |
+
"65"
|
| 35 |
+
],
|
| 36 |
+
"model year": [
|
| 37 |
+
70,
|
| 38 |
+
73,
|
| 39 |
+
81
|
| 40 |
+
],
|
| 41 |
+
"origin": [
|
| 42 |
+
1,
|
| 43 |
+
3,
|
| 44 |
+
1
|
| 45 |
+
],
|
| 46 |
+
"weight": [
|
| 47 |
+
3504,
|
| 48 |
+
2279,
|
| 49 |
+
2380
|
| 50 |
+
]
|
| 51 |
+
},
|
| 52 |
+
"model": {
|
| 53 |
+
"file": "skops47mqlzp0"
|
| 54 |
+
},
|
| 55 |
+
"task": "tabular-regression"
|
| 56 |
+
}
|
| 57 |
+
}
|
skops47mqlzp0
ADDED
|
Binary file (889 Bytes). View file
|
|
|