Skip to content

Commit

Permalink
feat(lib): Accept percentages for splitting test data (#163)
Browse files Browse the repository at this point in the history
* feat(lib): Accept percentages for splitting test data

* build(lib): Use node 14.15.5
  • Loading branch information
isair authored Feb 22, 2021
1 parent 24b0acf commit 079037d
Show file tree
Hide file tree
Showing 9 changed files with 23,975 additions and 5,035 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [10.20.1]
node-version: [14.15.5]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [10.20.1]
node-version: [14.15.5]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [10.20.1]
node-version: [14.15.5]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.20
14.15
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const {
temperature: (f) => (f - 32) / 1.8, // fahrenheit to celsius
}, // Map values based on which column they are in before they are loaded into tensors.
shuffle: true, // Pass true to shuffle with a fixed seed, or a string to use it as a seed for the shuffling.
splitTest: true, // Splits your data in half. You can also provide a certain row count for the test data.
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%).
prependOnes: true, // Prepends a column of 1s to your features and testFeatures tensors, useful for linear regression.
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.
});
Expand Down
Loading

0 comments on commit 079037d

Please sign in to comment.