Giter Club home page Giter Club logo

js-type-writer's People

Contributors

hy2850 avatar jiggum avatar kimjson avatar tmddus49 avatar

Watchers

 avatar  avatar

js-type-writer's Issues

GA base code 설명 (GA/base 브랜치)

디렉토리

GA/
├─ types/
│   └─ index.ts
├─ App.ts
├─ Individual.ts
└─ Population.ts
.env

각 파일 설명

  • App.ts 메인 프로그램.
    varEntry [변수, 타입] (ex. ['num', 'number'])의 Array 받아서, Population 생성 후 GA 사이클 돌림.
    stopping condition에 따라 멈추는 while문 존재.

  • Population.ts Population 관리.

    1. calculate population fitness
    2. parent selection (Roulette, Tournament)
    3. produceOffspring
    4. formNextGeneration (gradual_replacement, elitism)

    및 기타 헬퍼 함수 존재

  • Individual.ts Individual representation 관리
    crossover (single-point, uniform), mutation (randomFlip) 함수 존재

  • types/index.ts
    필요한 타입 관리

  • .env
    POP_SIZE, MUTATION_RATE 같은 글로벌 변수값 저장

실행

ts-node App.ts
( 다른 분들은 ts 파일 어떻게 실행하시는지.. 의견 주시면 감사하겠습니다)


아직 미구현된 코드는 🐛 이모티콘으로 표시해뒀습니다.

TODO

  • (App.ts) Fetch variable-type array
  • (App.ts) Stopping condition
  • (Individual.ts) Calculate fitness
  • (Individual.ts) How to assign random, complicated types

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.