sketchgraphs.data

This module contains the main data representations for the SketchGraphs dataset.

There are two main projections for the data.

The first is the sketch projection, which is close to the underlying FeatureScript JSON format from Onshape. This projection is favourable for interactions with Onshape’s API, and serves as a first step for parsing the raw data from Onshape.

The second projection in the sequence projection, and is more specialized towards applications in machine learning. It is more streamlined, and requires conversion to interact with Onshape’s API. However, it interacts more naturally with machine learning applications.

Modules

sketchgraphs.data.constraint_checks

This module implements a basic constraint checker for a solved graph.

sketchgraphs.data.dof

This module contains the implementation and data for heuristic degrees of freedom computation.

sketchgraphs.data.flat_array

This module implements helpers to read the pre-processed data files.

sketchgraphs.data.sequence

This module contains the implementation for the “sequence” projection of SketchGraphs.

sketchgraphs.data.sketch

This module implements parsing and representation for sketches.