Fuzzy Cognitive Maps
- ex_fuzzy.cognitive_maps.attractors_report(attractors: dict[array, array]) None [source]
Prints a report of the attractors found.
- Parameters:
attractors – dict[np.array, np.array]. The attractors found.
- ex_fuzzy.cognitive_maps.look_pattern_states(fcm: FuzzyCognitiveMap, sim_steps: int, pattern_len: 50, max_period_size: 50) list[array] [source]
Looks for the pattern states of the FCM when simulation is prolongued.
:param fcm : FuzzyCognitiveMap. The FCM to look for the attractor states. :param max_steps: int. The maximum number of steps to look for the attractor states. :param random_inits : int :returns: list of np.array. The attractor states found. None if none were found
- ex_fuzzy.cognitive_maps.study_attractors_FCM(fcm: FuzzyCognitiveMap, max_steps: int, random_inits: int = 10) list[array] [source]
Looks for the attractor states of the FCM when simulation is prolongued.
:param fcm : FuzzyCognitiveMap. The FCM to look for the attractor states. :param max_steps: int. The maximum number of steps to look for the attractor states. :param random_inits : int :returns: list of np.array. The attractor states found. None if none were found