Skip to content

Latest commit

 

History

History
83 lines (72 loc) · 4.93 KB

File metadata and controls

83 lines (72 loc) · 4.93 KB

Feature Association

"FeatureAssociation" computes some features that can be handled by FeatureExtraction of the WolframModel evolution and returns an Association whose keys describe each feature computed. For now, it computes properties associated with these feature groups:

In[] := WolframModel[{{x, y}, {x, z}} -> {{x, z}, {x, w}, {y, w}, {z, w}}, {{0, 0}, {0, 0}}, 5]["FeatureAssociation"]

Out[] = <|
StructurePreservingFinalStateGraph -> Graph[...],
ObjectPropertiesEventsCount -> 22,
ObjectPropertiesPartialGenerationsCount -> 0,
ObjectPropertiesAllEventsDistinctElementsCount -> 23,
ObjectPropertiesAllEventsEdgesCount -> 90,
ObjectPropertiesCompleteGenerationsCount -> 5,
ObjectPropertiesTerminationReason -> MaxGenerations,
ObjectPropertiesCausalGraph -> Graph[...]
|>

This property is useful for applying machine learning to Wolfram Models explorations:

In[] := BlockRandom[
  FeatureSpacePlot[#["FeatureAssociation"] -> Image[#["FinalStatePlot"], ImageSize -> Tiny] & /@
    (WolframModel[{{x, y}, {x, z}} -> {{x, z}, {x, w}, {y, w}, {z, w}}, #, 6] &) /@
      Table[RandomHypergraph[{3, 2}, 2], 10], LabelingFunction -> Callout], RandomSeeding -> 3
]

Out[] = ... plot showing a feature space with 10 points labeled with hypergraph plots ...

For Multiway Systems it only computes features associated with the causal graph, returning Missing["NotExistent", {"MultiwaySystem", "FinalState"}] for features related to "StructurePreservingFinalStateGraph", as there is no "FinalState" in a Multiway System:

In[] := WolframModel[{{x, y}, {x, z}} -> {{x, z}, {x, w}, {y, w}, {z, w}}, {{1, 1}, {1, 0}, {1, 1}}, 3,
  "EventSelectionFunction" -> "MultiwaySpacelike"]["FeatureAssociation"]

Out[] = <|
StructurePreservingFinalStateGraph -> Missing[NotExistent, {MultiwaySystem, FinalState}],
ObjectPropertiesEventsCount -> 4054,
ObjectPropertiesPartialGenerationsCount -> 0,
ObjectPropertiesAllEventsDistinctElementsCount -> 4056,
ObjectPropertiesAllEventsEdgesCount -> 16219,
ObjectPropertiesCompleteGenerationsCount -> 3,
ObjectPropertiesTerminationReason -> MaxGenerations,
ObjectPropertiesCausalGraph -> Graph[...]
|>