propeller.problems.PSB2.snow-day
SNOW DAY from PSB2
Given an integer representing a number of hours and 3 floats representing how much snow is on the ground, the rate of snow fall, and the proportion of snow melting per hour, return the amount of snow on the ground after the amount of hours given. Each hour is considered a discrete event of adding snow and then melting, not a continuous process.
-main
(-main & args)
Runs the top-level genetic programming function, giving it a map of arguments with defaults that can be overridden from the command line or through a passed map.
error-function
(error-function argmap data individual)
Finds the behaviors and errors of an individual: Error is 0 if the value and the program’s selected behavior match, or 1 if they differ, or 1000000 if no behavior is produced. The behavior is here defined as the final top item on the FLOAT stack.
instructions
Stack-specific instructions, input instructions, close, and constants
map-vals-input
(map-vals-input i)
Returns all the input values of a map
map-vals-output
(map-vals-output i)
Returns the output values of a map
train-and-test-data
Data taken from https://zenodo.org/record/5084812