Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change svm kernel #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .dvc/config
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[core]
autostage = true
remote = read-write
remote = datastore
['remote "read"']
url = https://winequality-red.s3.amazonaws.com/
['remote "read-write"']
url = s3://winequality-red/
url = s3://darkhorse-ar-card/
['remote "datastore"']
url = s3://darkhorse-static-data
15 changes: 8 additions & 7 deletions dvc.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ stages:
hyperparameters:
svm__kernel:
- linear
- rbf
svm__C:
- 0.1
- 1
Expand All @@ -57,10 +58,10 @@ stages:
verbose: 3
outs:
- path: model/svm
md5: ba0c50b412f6b5d5c5bd6c0ef163b1a1
size: 148163
md5: 56a719e06202368c953540a7cb3e37ef
size: 142616
- path: model/svm.mlem
md5: 3e7f2947de87d4500fb0dff8c1311555
md5: b562c8482a0cb77f10bf8b14bf65f548
size: 1263
evaluate:
cmd: python src/evaluate.py
Expand All @@ -70,8 +71,8 @@ stages:
size: 194875
nfiles: 4
- path: model/svm
md5: ba0c50b412f6b5d5c5bd6c0ef163b1a1
size: 148163
md5: 56a719e06202368c953540a7cb3e37ef
size: 142616
- path: src/evaluate.py
md5: 912aac9c6e00b70858f1d47bd16e51a0
size: 803
Expand All @@ -83,5 +84,5 @@ stages:
model: model/svm
outs:
- path: dvclive/metrics.json
md5: d71ae0196bba8e553dbad618e306517b
size: 28
md5: 62b3730eec31d2778145d46759a8a45f
size: 27
4 changes: 2 additions & 2 deletions dvclive/params.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Best hyperparameters:
svm__C: 10
svm__C: 1
svm__gamma: 0.1
svm__kernel: linear
svm__kernel: rbf
2 changes: 1 addition & 1 deletion dvclive/plots/metrics/accuracy.tsv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
step accuracy
0 0.559375
0 0.60625
8 changes: 4 additions & 4 deletions dvclive/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
<div style="display: flex;justify-content: center;">
<table>
<thead>
<tr><th>Best hyperparameters </th></tr>
<tr><th>Best hyperparameters </th></tr>
</thead>
<tbody>
<tr><td>{&#x27;svm__C&#x27;: 10, &#x27;svm__gamma&#x27;: 0.1, &#x27;svm__kernel&#x27;: &#x27;linear&#x27;}</td></tr>
<tr><td>{&#x27;svm__C&#x27;: 1, &#x27;svm__gamma&#x27;: 0.1, &#x27;svm__kernel&#x27;: &#x27;rbf&#x27;}</td></tr>
</tbody>
</table>
</div>
Expand All @@ -39,15 +39,15 @@
<tr><th style="text-align: right;"> accuracy</th></tr>
</thead>
<tbody>
<tr><td style="text-align: right;"> 0.559375</td></tr>
<tr><td style="text-align: right;"> 0.60625</td></tr>
</tbody>
</table>
</div>
</div>

<div id = "static_accuracy">
<script type = "text/javascript">
var spec = {"$schema": "https://vega.github.io/schema/vega-lite/v5.json", "data": {"values": [{"step": "0", "accuracy": "0.559375", "rev": "workspace"}]}, "title": "accuracy", "width": 300, "height": 300, "params": [{"name": "smooth", "value": 0.001, "bind": {"input": "range", "min": 0.001, "max": 1, "step": 0.001}}], "layer": [{"mark": "line", "encoding": {"x": {"field": "step", "type": "quantitative", "title": "step"}, "y": {"field": "accuracy", "type": "quantitative", "title": "accuracy", "scale": {"zero": false}}, "color": {"field": "rev", "type": "nominal"}}, "transform": [{"loess": "accuracy", "on": "step", "groupby": ["rev", "filename", "field", "filename::field"], "bandwidth": {"signal": "smooth"}}]}, {"mark": {"type": "point", "tooltip": {"content": "data"}}, "encoding": {"x": {"field": "step", "type": "quantitative", "title": "step"}, "y": {"field": "accuracy", "type": "quantitative", "title": "accuracy", "scale": {"zero": false}}, "color": {"field": "rev", "type": "nominal"}}}]};
var spec = {"$schema": "https://vega.github.io/schema/vega-lite/v5.json", "data": {"values": [{"step": "0", "accuracy": "0.60625", "rev": "workspace"}]}, "title": "accuracy", "width": 300, "height": 300, "params": [{"name": "smooth", "value": 0.001, "bind": {"input": "range", "min": 0.001, "max": 1, "step": 0.001}}], "layer": [{"mark": "line", "encoding": {"x": {"field": "step", "type": "quantitative", "title": "step"}, "y": {"field": "accuracy", "type": "quantitative", "title": "accuracy", "scale": {"zero": false}}, "color": {"field": "rev", "type": "nominal"}}, "transform": [{"loess": "accuracy", "on": "step", "groupby": ["rev", "filename", "field", "filename::field"], "bandwidth": {"signal": "smooth"}}]}, {"mark": {"type": "point", "tooltip": {"content": "data"}}, "encoding": {"x": {"field": "step", "type": "quantitative", "title": "step"}, "y": {"field": "accuracy", "type": "quantitative", "title": "accuracy", "scale": {"zero": false}}, "color": {"field": "rev", "type": "nominal"}}}]};
vegaEmbed('#static_accuracy', spec);
</script>
</div>
Expand Down
4 changes: 2 additions & 2 deletions model/svm.mlem
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
artifacts:
data:
hash: ba0c50b412f6b5d5c5bd6c0ef163b1a1
size: 148163
hash: 56a719e06202368c953540a7cb3e37ef
size: 142616
uri: svm
call_orders:
predict:
Expand Down
1 change: 1 addition & 0 deletions params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ train:
hyperparameters:
svm__kernel:
- linear
- rbf
svm__C:
- 0.1
- 1
Expand Down