-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from delta-mpc/lr
Lr
- Loading branch information
Showing
12 changed files
with
284 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
from .mnist import mnist_train | ||
from .wages import make_wage_df | ||
|
||
import os | ||
from delta_node import config | ||
|
||
import pkgutil | ||
|
||
__all__ = ["get_mnist", "get_wages", "get_iris", "get_spector", "get_all"] | ||
|
||
|
||
def get_mnist(): | ||
mnist_train() | ||
|
||
|
||
def get_wages(): | ||
make_wage_df() | ||
|
||
|
||
def get_iris(): | ||
data = pkgutil.get_data(__name__, "iris.csv") | ||
if data is None: | ||
raise ValueError("cannot read dataset iris") | ||
filename = os.path.join(config.data_dir, "iris.csv") | ||
with open(filename, mode="wb") as f: | ||
f.write(data) | ||
|
||
|
||
def get_spector(): | ||
data = pkgutil.get_data(__name__, "spector.csv") | ||
if data is None: | ||
raise ValueError("cannot read dataset spector") | ||
filename = os.path.join(config.data_dir, "spector.csv") | ||
with open(filename, mode="wb") as f: | ||
f.write(data) | ||
|
||
|
||
def get_all(): | ||
get_mnist() | ||
get_wages() | ||
get_iris() | ||
get_spector() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
sepal length (cm),sepal width (c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,2 | ||
6.9,3.1,5.4,2.1,2 | ||
6.7,3.1,5.6,2.4,2 | ||
6.9,3.1,5.1,2.3,2 | ||
5.8,2.7,5.1,1.9,2 | ||
6.8,3.2,5.9,2.3,2 | ||
6.7,3.3,5.7,2.5,2 | ||
6.7,3.0,5.2,2.3,2 | ||
6.3,2.5,5.0,1.9,2 | ||
6.5,3.0,5.2,2.0,2 | ||
6.2,3.4,5.4,2.3,2 | ||
5.9,3.0,5.1,1.8,2 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
GPA,TUCE,PSI,GRADE | ||
2.66,20.0,0.0,0.0 | ||
2.89,22.0,0.0,0.0 | ||
3.28,24.0,0.0,0.0 | ||
2.92,12.0,0.0,0.0 | ||
4.0,21.0,0.0,1.0 | ||
2.86,17.0,0.0,0.0 | ||
2.76,17.0,0.0,0.0 | ||
2.87,21.0,0.0,0.0 | ||
3.03,25.0,0.0,0.0 | ||
3.92,29.0,0.0,1.0 | ||
2.63,20.0,0.0,0.0 | ||
3.32,23.0,0.0,0.0 | ||
3.57,23.0,0.0,0.0 | ||
3.26,25.0,0.0,1.0 | ||
3.53,26.0,0.0,0.0 | ||
2.74,19.0,0.0,0.0 | ||
2.75,25.0,0.0,0.0 | ||
2.83,19.0,0.0,0.0 | ||
3.12,23.0,1.0,0.0 | ||
3.16,25.0,1.0,1.0 | ||
2.06,22.0,1.0,0.0 | ||
3.62,28.0,1.0,1.0 | ||
2.89,14.0,1.0,0.0 | ||
3.51,26.0,1.0,0.0 | ||
3.54,24.0,1.0,1.0 | ||
2.83,27.0,1.0,1.0 | ||
3.39,17.0,1.0,1.0 | ||
2.67,24.0,1.0,0.0 | ||
3.65,21.0,1.0,1.0 | ||
4.0,23.0,1.0,1.0 | ||
3.1,21.0,1.0,0.0 | ||
2.39,19.0,1.0,1.0 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.