Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.67 KB

File metadata and controls

35 lines (26 loc) · 1.67 KB

Feature Vector

"FeatureVector" returns the values of the features of the WolframModel evolution as computed by "FeatureAssociation".

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

Out[] = {... final state graph ..., 22, 0, 23, 90, 5, MaxGenerations, ... causal graph ...}

For the list of features see FeatureAssociation.

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

Example

In[] := BlockRandom[
  FeatureSpacePlot[#["FeatureVector"] -> 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 -> 2
]

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