New Machine Learning Examples with LunchBoxML

Last year, we introduced LunchBoxML – a machine learning (ML) plugin for Grasshopper and Dynamo that uses the Accord framework. LunchBoxML introduces several generalized supervised and unsupervised learning tools to visual programming including regression analysis, neural networks, and mixture models.

We have published a few new examples to the Bitbucket repository to demonstrate the application of Gaussian Mixture and Neural Network components.

Get the Examples

Neural Network – Space Type Prediction

NeuralNetwork
The Neural Network component allows users to establish a variety of attributes and associated outputs for supervised learning.

The Neural Network example demonstrates the use of a simple supervised learning algorithm that uses training data about space attributes (area, length, and width) and their resulting classification (office, conference, etc). The user can test a new space and the neural network will predict how the category of space based on what it has learned from the training data. The training data in the example is very rudimentary for the purposes of demonstration and could to be greatly expanded for practical applications such as expanding the study to include location and adjacency.

NeuralNetworkGH-sm
The Neural Network example shows the setup of training data and a to predict space categories.

Gaussian Mixture – Panel Grouping

GaussianMixture
A diagram of Gaussian Mixture where attributes are defined to determine groupings

The Gaussian Mixture model demonstrates the use of an unsupervised learning algorithm to group 3D panels based on geometry attributes for size and shape. The Grasshopper definition also allows the user to prioritize certain attributes to affect the grouping outcomes. While the application does not attempt to rationalize the shape, the use of the Gaussian Mixture algorithm can be used to unpack the complexity of the panel system to make decisions about its development. The study could be greatly expanded to include classification based on additional attributes for curvature analysis and panel edge angles.

PanelGaussianMixtrure
The Gaussian Mixture model allows users to evaluate unlabeled panels and determine groupings of panels based on similarities in specified attributes.