Genetic Algorithms (07) + data mining w/ arithmetic operators - JAVA Prototype Project
1,805 views · Published 27 December 2016 · 29:49 · Indexed 24 September 2026
Channel: Prototype Project · 2016 · Education
► get access to members-only video contents + support:
https://www.youtube.com/channel/UCUvwlMMaeppKPdtAK8PxO8Q/join
► download ai source code @ https://sites.fastspring.com/prototypeprj/instant/ai
► download crypto source code @ https://sites.fastspring.com/prototypeprj/instant/crypto
00:01 quickly go over various parts in this application
00:22 use genetic algorithm to discover formula that applies arithmetic operators to collection of tuples and produce calculated result that equals expected result
01:10 demo prebuilt version of the application
02:53 code the application
03:00 go over the various classes in this app.
03:46 initial training data
04:10 code Expression class
05:00 Leaf and non-leaf expression
06:42 leaf expression constructor
07:37 non-leaf expression constructor
08:43 getPostfixFormula & getRegularFormula methods
11:03 calculateResult method
12:30 code Group of expressions class
12:52 calculate Group fitness functionality
13:23 create and return an Expression based on postfix String expression, an expected result, calculate + set actual result
15:50 start coding GeneticAlgorithm class containing logic for selection, crossover, mutation, and elitism
16:26 start coding Population class representing population of groups of expressions
16:49 sort groups of expressions by fitness
17:05 randomly generate operators given number of operands
20:00 crossover and mutate Group of expressions functionalities
21:00 tournament selection functionality
21:49 crossover and mutate Population of groups functionality including usage of elitism
22:36 evolve population from one generation to the next
23:17 code Driver class
26:58 test run completed application
27:52 test run completed app. with different training data
28:50 test run completed app. with different training data (3 digit operands)
More from this channel
-
6:00
Network Derby using Eclipse Database Development Perspective - Tutorial
-
10:03
Java 8 Tutorial 03 - Lambda Expression + Simple JavaFX App
-
11:52
Neural Networks w/ JAVA - Prototype Project 04
-
23:24
Neural Networks w/ JAVA (Prototype Project 06) - Solve XOR w/ Hill Climbing
-
30:31
RSA - Public Key Cryptography + JAVA (Prototype Project 02)