Git Product home page Git Product logo

evolutionary_regression's Introduction

Symbolic Regression

Tree Structure

The original data (funciton1.csv) lists 1000 points with their X and Y locations on axes. After importing this matrix into MATLAB, its X values are extracted for estimation and its Y values are reserved for validation. A proposed 63 nodes Expression Tree (63-nodes tree) is created. Any node is able to hold the X values, a random number, or an operator. The X values are 1000 fixed numbers and are contained inside an array, so this array is indicated as X in this assignment. The random number can be any real constant within the range of ±10, and the operator is picked from plus, minus, divide, multiply, sine, and cosine.

Tree

A parent node n is linked with two successors 2n and 2n+1. Not all 63 nodes will be involved in the analysis; only if the parent node is an operator, its successors will be counted. Two tree styles will be carried out: one is the 63-nodes tree, and the other one is an effective tree containing all analytical used nodes extracted from its 63-nodes tree. The effective tree contains multiple Xs, constants, and operators, and an equation Y(X) can be formed by reading nodes from the bottom to the top of the tree.

Recursive functions are robust of finding parameters and solving the equation. By altering the combination of the parameters, a new solution can be achieved at each evaluation. The distance between a predicted value from Y(X) and a given value from input Y locations can be calculated, and a fitness is the sum of all these distances in the evaluation.

Genotype is the combinations of different parameters in its effective tree, leading to different equations. Phenotype is the fitness of the sum of all points’ distances. If an evaluation outputs a better result, shorter distances between points, the combinations and the parameters will be expected to be kept. Three evolutionary methods: Random Search, Hill Climber, and Genetic Programming (EA Variation Operators and EA Selection Methods) will be described. Random Search does not keep the evolutionary tree, so it will be used as a baseline to assess others’ performances.

SR

evolutionary_regression's People

Contributors

knightlian avatar

Watchers

James Cloos avatar  avatar

Forkers

linecomparison

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.