this.me 2.2.1 → 2.2.2

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/test.js +29 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "this.me",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "CLI for managing the .me suite.",
5
5
  "bin": {
6
6
  ".me": "./main.js"
@@ -18,11 +18,11 @@
18
18
  "author": "suiGn",
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "neurons.me": "^2.2.9",
22
- "cleaker": "^2.1.0",
21
+ "neurons.me": "^2.5.7",
22
+ "cleaker": "^2.2.9",
23
23
  "monadlisa": "^2.1.1",
24
24
  "netget": "^2.1.6",
25
- "v.path": "^2.1.3",
25
+ "v.path": "^2.1.7",
26
26
  "this.haiku": "1.2.2",
27
27
  "this.mlearning": "2.1.6"
28
28
  }
package/test.js CHANGED
@@ -1,13 +1,37 @@
1
1
  const neurons = require('neurons.me');
2
+ //cleaking
3
+ const Cleaker = require('cleaker');
4
+ let cleaked = new Cleaker();
5
+ console.log('printing cleaked');
6
+ console.log(cleaked);
7
+ //cleaked completed
8
+ console.log('printing neurons.me module functionality');
9
+ console.log(neurons);
10
+
11
+ console.log('Creating a new neuron with neurons.createNeuron()');
12
+ let neuron = neurons.createNeuron();
13
+ console.log(neuron);
14
+
15
+
2
16
  // Custom options for the neuron
3
17
  let options = {
4
18
  name: 'x', // Custom name for the neuron
5
- date: '2023-07-25', // Custom date
6
- time: '12:30 PM', // Custom time
7
- color: 'blue', // Custom color
19
+ color: 'rgb', // Custom color
8
20
  activationFunction: x => x * 2 // Custom activation function
9
21
  };
10
22
  // Create a neuron with custom options
11
- let neuron = new neurons.createNeuron({ options: options });
12
- let layer = new neurons.Layer({ neurons: [neuron] });
23
+ let neuron2 = new neurons.createNeuron({ options: options });
24
+ console.log(neuron2);
25
+ // Create Layer
26
+ console.log('creating layer');
27
+ let layer = new neurons.Layer();
28
+ console.log('printing layer');
29
+ console.log(layer);
30
+ //adding neurons to layer
31
+ layer.addNeurons(neuron, neuron2);
32
+ console.log('printing layer.neurons');
33
+ console.log(layer.neurons);
34
+ console.log('printing layer.map');
13
35
  console.log(layer.map);
36
+
37
+