sadhaklal commited on
Commit
dfa3cf0
1 Parent(s): 6da205d

added README.md

Browse files
Files changed (1) hide show
  1. README.md +33 -0
README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - scikit-learn/iris
5
+ metrics:
6
+ - accuracy
7
+ library_name: pytorch
8
+ pipeline_tag: tabular-classification
9
+ ---
10
+
11
+ # logistic-regression-iris
12
+
13
+ A logistic regression model trained on the Iris dataset.
14
+
15
+ It takes two inputs: `'PetalLengthCm'` and `'PetalWidthCm'`. It predicts whether the species is `'Iris-setosa'`.
16
+
17
+ It is a PyTorch adaptation of the scikit-learn model in Chapter 10 of Aurelien Geron's book 'Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow'.
18
+
19
+ Code: https://github.com/sambitmukherjee/handson-ml3-pytorch/blob/main/chapter10/logistic_regression_iris.ipynb
20
+
21
+ Experiment tracking: https://wandb.ai/sadhaklal/logistic-regression-iris
22
+
23
+ ## Metric
24
+
25
+ The validation set contains 30% of the examples (selected at random using stratification on the target variable):
26
+
27
+ ```
28
+ from sklearn.model_selection import train_test_split
29
+
30
+ X_train, X_val, y_train, y_val = train_test_split(X.values, y.values, test_size=0.3, stratify=y, random_state=42)
31
+ ```
32
+
33
+ Accuracy on the validation set: 1.0