Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
chromesome-js
Advanced tools
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/ChromosomeJS/community)
A small library to help curious people to develop their own Genetic Algorithms.
ChromosomeJS has arrived to the town to help you develop in a easier / faster-paced way your own Genetic Algorithms. In order to achieve this goals, this open-project try to help you in 3 different ways:
The documentation is under development
An essential part of ChromosomeJS is to help people understand better Genetic Algorithms by example. The documentation does not exclusively aim to cover the developer API but also to offer a nice introduction to genetic algorithms, present the library through examples and contain references to good sources of information.
Do you know about Genetic Algorithms and want to explain some concept? Are you eager to help us improve the language that we use? Do you have any doubt or something that we could make clearer? Please open an issue starting with [Documentation]
Utility library is still expanding for the first version ChromosomeJS offers a serie of utility functions to help out with different part of your Genetic Algorithm.
generateIndividual
- Given a genotype and a fitness function it will return an evaluated individualgenerateIndividualWith
- Returns a function that only requires a chromosome/genotype to get an individualgeneratePopulation
- Given a genotype, fitness and a number of individuals it will create a first generationonePointCrossover
- Two individuals generate two offsprings by swapping values at a random point.twoPointCrossover
- Same as one point crossover but with two pointsflipMutation
- Flips bit from true to false and viceversaintInRangeMutation
- Generate a new integer within the genotype limitsrandom
- Get individuals randomly from the populationbest
- Get X individuals from the best ones of the populationworst
- Get X individuals from the worst ones of the populationtournament
- Select N random individuals from the population and select the best one of those, will be done as many times as individuals are required.roulette
- Choose individuals by the proportion of their fitness to the total fitness, so individuals with higher fitness have more chances to be selected.You can help ChromosomeJS to extend the utils functions library, define a better API to interact with it or simply make a feature request. Just open an issue starting with [Utils]
.
The framework is under development ChromosomeJS also makes easy to 'plug-n-play', so we just choose/define our genetic algorithm and it will take care of run it for you interacting through callbacks. It needs you to define the different cycle functions (Crossover, mutation...) and constants (probabilities, population and individual size...) and then just run your algorithm.
To help ChromosomeJS offer a more performant framework, improve the API, extend it to fit other Evolutionary Algorithms you could start by opening an issue starting with [Framework]
.
FAQs
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/ChromosomeJS/community)
The npm package chromesome-js receives a total of 2 weekly downloads. As such, chromesome-js popularity was classified as not popular.
We found that chromesome-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.