Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.46 KB

File metadata and controls

31 lines (22 loc) · 1.46 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"]

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
]