Skip to content

Commit 079037d

Browse files
authored
feat(lib): Accept percentages for splitting test data (#163)
* feat(lib): Accept percentages for splitting test data * build(lib): Use node 14.15.5
1 parent 24b0acf commit 079037d

9 files changed

+23975
-5035
lines changed

.github/workflows/check-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [10.20.1]
11+
node-version: [14.15.5]
1212

1313
steps:
1414
- uses: actions/checkout@v2

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [10.20.1]
14+
node-version: [14.15.5]
1515

1616
steps:
1717
- uses: actions/checkout@v2

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [10.20.1]
18+
node-version: [14.15.5]
1919

2020
steps:
2121
- uses: actions/checkout@v2

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.20
1+
14.15

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const {
6060
temperature: (f) => (f - 32) / 1.8, // fahrenheit to celsius
6161
}, // Map values based on which column they are in before they are loaded into tensors.
6262
shuffle: true, // Pass true to shuffle with a fixed seed, or a string to use it as a seed for the shuffling.
63-
splitTest: true, // Splits your data in half. You can also provide a certain row count for the test data.
63+
splitTest: true, // Splits your data in half. You can also provide a certain row count for the test data, or a percentage string (e.g. 10%).
6464
prependOnes: true, // Prepends a column of 1s to your features and testFeatures tensors, useful for linear regression.
6565
standardise: true, // Calculates mean and variance for each feature column using data only in features, then standardises the values in features and testFeatures. Does not touch labels.
6666
});

0 commit comments

Comments
 (0)