@benp2325/benutils 1.0.1 → 1.0.3

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './src/math.js';
2
- export * from './src/matrix.js';
2
+ export * from './src/arrmat.js';
3
3
  export * from './src/activations.js';
4
4
  export * from './src/data.js';
5
5
  export * from './src/network.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benp2325/benutils",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "zero dependency personal library for math, array/matrix manipulation, and neural network modeling in JS",
5
5
  "homepage": "https://github.com/BenPask/benutils",
6
6
  "bugs": {
package/src/arrmat.js CHANGED
@@ -29,7 +29,6 @@ export function arrmult(array1, array2){
29
29
  }
30
30
 
31
31
  export function transpose_matrix(m){
32
-
33
32
  let output = [];
34
33
 
35
34
  if(!Array.isArray(m[0])){
package/src/network.js CHANGED
@@ -1,7 +1,7 @@
1
- import './math.js'
2
- import './arrmat.js'
3
- import './activations.js'
4
- import './data.js'
1
+ import {sqroot, zto_random, round_float, absolute_value} from './math.js'
2
+ import {array_to_matrix, array_mean, arrmult, transpose_matrix, matmult, matadd, matsub} from './arrmat.js'
3
+ import {activate, deriv_activate} from './activations.js'
4
+ import {normalize_array, denormalize_array, shuffle_feature_data, } from './data.js'
5
5
 
6
6
  //-------NEURAL_NETWORK-------
7
7
  function generate_weight(model, prev_layer_size){