Table of Contents

Namespace Bonsai.ML.Python

Classes

FormatToPython

Represents an operator that can convert an object into a properly formatted string that is consistent with python syntax. For example, a tuple (1, 2, 3) will be converted to the string "(1, 2, 3)". A list of [0, 1, 2] will be converted to the string "[0, 1, 2]".

NumpyHelper

Provides a set of static methods for working with NumPy arrays.

NumpyHelper.NumpyArrayInterface

Represents a NumPy array interface for interacting with Python.Runtime.PyObject representing NumPy arrays.

NumpyHelper.NumpyDataTypes

A custom type converter for NumPy data types.

PythonHelper

Provides a set of extension methods for working with Python.Runtime.PyObject instances.

StringFormatter

Represents a C# to Python string formatter class.