Changeset 1167
- Timestamp:
- 12/12/21 23:34:08 (3 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f9/f9_oper.cpp
r1157 r1167 14 14 { 15 15 { "Genetics: f9", 1, 1, }, 16 { "f9_mut", 0, 0, "Mutation probability", "f 0 1 0", FIELD(mut_prob), "How many genes should be mutated during single mutation (1=all genes, 0.1=ten percent, 0=one gene)", },16 { "f9_mut", 0, 0, "Mutation probability", "f 0 1 0", FIELD(mut_prob), "How many genes should be mutated during a single mutation (1=all genes, 0.1=ten percent, 0=one gene)", }, 17 17 { 0, }, 18 18 }; -
cpp/frams/genetics/fH/fH_general.h
r966 r1167 253 253 * only for neurons that should act as outputs. Distance is calculated 254 254 * as Euclidean distance between second vector of ConnectionHandle and first 255 * vector of NeuronHandle. In order to calculate distance between256 * input neuron and connection use distance function implemented in255 * vector of NeuronHandle. In order to calculate the distance between 256 * input neuron and connection, use the distance function implemented in 257 257 * NeuronHandle class. 258 258 * @param right second handle to which distance is calculated -
cpp/frams/genetics/fH/fH_oper.cpp
r999 r1167 17 17 { "fH_mut_add_joint", 0, 0, " - add joint", "f 0 1 0.33", FIELD(addoperations[FH_ADD_STICK]), "Probability of adding new stick handle", }, 18 18 { "fH_mut_add_neuron", 0, 0, " - add neuron", "f 0 1 0.33", FIELD(addoperations[FH_ADD_NEURO]), "Probability of adding new neuron handle", }, 19 { "fH_mut_add_connection", 0, 0, " - add connection", "f 0 1 0.33", FIELD(addoperations[FH_ADD_CONN]), "Probability of adding newconnection handle", },19 { "fH_mut_add_connection", 0, 0, " - add neural connection", "f 0 1 0.33", FIELD(addoperations[FH_ADD_CONN]), "Probability of adding new neuron connection handle", }, 20 20 { "fH_mut_deletion", 0, 0, "Delete element", "f 0 1 0.1", FIELD(operations[FH_DEL]), "Probability of removing element from genotype", }, 21 21 { "fH_mut_handle", 0, 0, "Modify vectors of handles", "f 0 1 0.3", FIELD(operations[FH_HANDLE]), "Probability of changing values in vectors of handle", }, -
framspy/frams.py
r1166 r1167 341 341 global c_api # access global variable 342 342 if lib_path is not None and os.name == 'posix': 343 lib_name = os.path.join(lib_path, lib_name) # lib_path is always set ('.' when not specified). for the (currently unused) case of lib_path==Nonethe resulting lib_name is a bare filename without any path, which loads the library from a system-configured location.343 lib_name = os.path.join(lib_path, lib_name) # lib_path is always set ('.' when not specified). For the (currently unused) case of lib_path==None, the resulting lib_name is a bare filename without any path, which loads the library from a system-configured location. 344 344 try: 345 345 c_api = ctypes.CDLL(lib_name) # if accessing this module from multiple threads, they will all share a single c_api and access the same copy of the library and its data. If you want separate independent copies, read the comment at the top of this file on using the "multiprocessing" module.
Note: See TracChangeset
for help on using the changeset viewer.