▲ 113 r/IntelligenceEngine+1 crossposts

Genetic algorithm with multiple layers perceptron has beaten the Steffen method for onboarding

Hi,

I used a genetic algorithm combined with a multilayer perceptron to optimize the aircraft boarding problem.

I honestly didn't expect it to beat the Steffen method, but after evolving the boarding strategy, it ended up being 9.6% faster than Steffen in my simulation. there is a fix rule that prohibits crossing people in between seats for the random too.

The whole project was basically vibecoded.

u/DisDoh — 8 days ago
▲ 4 r/IntelligenceEngine+1 crossposts

I compared a standard perceptron with a quadratic neuron on all 16 two-input logic gates

I ran a small experiment comparing a standard logistic perceptron with a quadratic neuron on all 16 possible Boolean functions with two binary inputs.

The perceptron used:

[
z = w^T x + b
]

The quadratic neuron used:

[
z = w^T x + q_1x_1^2 + q_2x_2^2 + q_{12}x_1x_2 + b
]

Both models were trained with gradient descent, using a maximum of 220 epochs and early stopping as soon as they reached 100% classification accuracy.

I ran one test per logic gate and per neuron type.

Results:

  • Perceptron: 14/16 gates solved
  • Quadratic neuron: 16/16 gates solved
  • Perceptron average accuracy: 93.75%
  • Quadratic neuron average accuracy: 100%
  • Perceptron average convergence: 40.81 epochs
  • Quadratic neuron average convergence: 11.75 epochs

As expected, the perceptron failed on XOR and XNOR because they are not linearly separable.

For XOR:

  • Perceptron: 50% accuracy after 220 epochs
  • Quadratic neuron: 100% accuracy after 46 epochs

For XNOR:

  • Perceptron: 50% accuracy after 220 epochs
  • Quadratic neuron: 100% accuracy after 30 epochs

The important part is that, with binary inputs, (x^2 = x), so the squared terms do not really add new information. The useful extra feature is the interaction term:

[
x_1x_2
]

That interaction allows a single quadratic neuron to represent XOR and XNOR without requiring a hidden layer.

reddit.com
u/DisDoh — 1 month ago

I Vibecoded a small NEAT-style co-evolution with co-operation

I Vibecoded a small NEAT-style co-evolution experiment in Pygame where two agents have to cooperate in a fake 3D arena.

The blue agent is the Eater.
It can eat food, but it does not see the food at all.

The purple agent is the Guide.
It can see the food and the eater, but it gets no direct reward for reaching food itself. The only way the team succeeds is if the blind eater reaches the food.

The idea is simple:

  • the Guide sees the target
  • the Eater is blind to the target
  • both agents evolve separately
  • they share the same team fitness
  • the Guide can communicate through evolved signals
  • the Eater has to learn/evolve how to interpret those signals

So the behavior is not hand-coded. The agents are evolved through generations using a NEAT-style evolutionary setup: selection, mutation, crossover, and survival pressure.

The current best run in the recording reached around 6.8 foods per episode.

u/DisDoh — 1 month ago
▲ 0 r/codes

[P] Auto encoder as cryptography algorithm

Hello,

I have developed with llms an algorithm which uses an Auto encoder and a mask with a magic salt and a password.

The Auto encoder is trained on a random 8 bits datasets and learns to map them into 64 bits in a unique mapping table.

I'd like to have your opinions if it's cryptography? Could someone proofread it?

The full code is in this repository:

https://github.com/DisDoh/Game_Secret_AI

There is a Readme with steps to try it and an interface.

V sbyybjrq gur ehyrf

u/DisDoh — 2 months ago

JC Ring X3 battery life

Hi SmartRings community,

I have bought the new model from JC Ring a while ago and I'm asking if someone else did the same?

If yes how long does the battery last?

I have a comparison from JC Ring from the previous model and with the same configuration in the JC ring app the new model lasts approximately half the time of the previous model approximately 2 days instead of 5 with the previous model.

I have contacted the support and they were very kind and sent me a replacement one, but sadly the battery life remain the same with the replacement one.

So I'm asking feedback from this community what their experiences with this Ring the JC Ring X3 battery life.

I'm going to write to the support team about this to let them know the issue.

Btw, I'm very happy with the sleep tracking from those JC Rings, feels accurate and tracks naps too.

reddit.com
u/DisDoh — 2 months ago