question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NEAT showing wrong inputs and connection count

See original GitHub issue

i tried running this script to testing out some basic model

    const dataset = [
        { input: [0,0], output: [0] },
        { input: [0,1], output: [1] },
        { input: [1,0], output: [1] },
        { input: [1,1], output: [0] }
    ];
   let Pops = new Neat(2,1);
   Pops.evaluate(dataset);
   let fittest = Pops.getFittest();
   console.log(fittest.toJSON());`

output

{
  "nodes": [
    {
      "bias": 0,
      "type": "input",
      "squash": "LOGISTIC",
      "mask": 1,
      "index": 0
    },
    {
      "bias": 0.039815399456396255,
      "type": "output",
      "squash": "LOGISTIC",
      "mask": 1,
      "index": 1
    }
  ],
  "connections": [
    {
      "weight": 1.2941470809287727,
      "from": 0,
      "to": 1,
      "gater": null
    }
  ],
  "input": 1,
  "output": 1,
  "dropout": 0
}`

however the json output showing that there’s only one node and one connection, do i missed something ???

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
winatawellycommented, Jul 24, 2019

Hey @winatawelly thanks for pointing this out. This is an interesting, but unexpected behavior – I’ll take a deeper look and get back to you on what might be going on

Hi!, Just letting you know that I just tried my earlier code on nodejs and it worked perfectly, however the “type” on “node” is undefined on all nodes.

[ { bias: 0.6161864528072978,
    type: undefined,
    squash: 'LOGISTIC',
    mask: 1,
    index: 0 },
  { bias: 0.7912470525327948,
    type: undefined,
    squash: 'LOGISTIC',
    mask: 1,
    index: 1 },
  { bias: -0.04250138077694432,
    type: undefined,
    squash: 'LOGISTIC',
    mask: 1,
    index: 2 } ],
1reaction
winatawellycommented, Jul 24, 2019

Hey @winatawelly thanks for pointing this out. This is an interesting, but unexpected behavior – I’ll take a deeper look and get back to you on what might be going on

Looking forward to it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Answered: Nest thermostat won't connect to app
Tap your thermostat on the Nest app home screen, then tap Settings. Scroll down and select Remove thermostat. 2.) On your thermostat, go...
Read more >
Add your Nest thermostat to the Nest app - Google Nest Help
1. Connect your thermostat to your Wi-Fi network · 2. Download the Nest app · 3. Create an account in the Nest app...
Read more >
More on data validation - Microsoft Support
If users enter more than the limit amount, they see an error message. Data Validation Input and Error Messages. You can choose to...
Read more >
Get the most accurate measurements using your Apple Watch
Your Apple Watch uses the personal information that you provide to help calculate metrics for your daily activity. You can further improve ...
Read more >
logic gate (AND, OR, XOR, NOT, NAND, NOR and XNOR)
Pull-up and pull-down resistors are used when there are any unused logic gate inputs to connect to a logic level 1 or 0....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found