xy-scale 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xy-scale",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "main": "./index.js",
5
5
  "type": "module",
6
6
  "scripts": {
package/src/datasets.js CHANGED
@@ -11,7 +11,7 @@ export const parseTrainingXY = ({
11
11
  validateRows = () => true,
12
12
  groups = {},
13
13
  shuffle = false,
14
- minmaxRange = [],
14
+ minmaxRange = [0, 1],
15
15
  balancing = '',
16
16
  state = {},
17
17
  customMinMaxRanges = {},
@@ -107,7 +107,7 @@ export const parseProductionX = ({
107
107
  validateRows = () => true,
108
108
  groups = {},
109
109
  shuffle = false,
110
- minmaxRange = [],
110
+ minmaxRange = [0, 1],
111
111
  state = {},
112
112
  customMinMaxRanges,
113
113
  excludes = []
package/src/scale.js CHANGED
@@ -1,4 +1,4 @@
1
- export const scaleArrayObj = ({ arrObj, repeat = {}, minmaxRange = [0, 1], groups = {}, customMinMaxRanges = null, excludes = new Set() }) => {
1
+ export const scaleArrayObj = ({ arrObj, repeat = {}, minmaxRange, groups = {}, customMinMaxRanges = null, excludes = new Set() }) => {
2
2
 
3
3
  const arrObjClone = [...arrObj]
4
4
  const arrObjLen = arrObjClone.length;