@benp2325/benutils 1.0.2 → 1.0.4

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": "@benp2325/benutils",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
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": {
@@ -14,6 +14,10 @@
14
14
  "author": "Benjamin Pask",
15
15
  "type": "module",
16
16
  "main": "index.js",
17
+ "files": [
18
+ "index.js",
19
+ "src/"
20
+ ],
17
21
  "scripts": {
18
22
  "test": "echo \"Error: no test specified\" && exit 1"
19
23
  }
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){
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto