Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyGRT: Python bindings for GRT via SWIG #151

Open
wants to merge 15 commits into
base: master
from

Conversation

Projects
None yet
1 participant
@royshil
Copy link

royshil commented Jul 11, 2018

This implements a Python API for GRT.

Enables writing Python code like this:

    print("Loading dataset...")
    training_data = GRT.ClassificationData()
    training_data.load(filename)
    print("Data Loaded")
    
    # Print out some stats about the training data
    training_data.printStats()
    
    print("Splitting data into training/test split...")
    test_data = training_data.split(80)
    
    # Create a new Gesture Recognition Pipeline
    pipeline = GRT.GestureRecognitionPipeline()
    
    # Add a KNN classifier to the pipeline with a K value of 10
    knn = GRT.KNN(10)
    pipeline.setClassifier(knn)

    print("Training model...")
    pipeline.train(training_data)

I started with the examples to get a good API coverage.

The Travis build fails because the MLPRegressor unit test fail, i.e. the problem is not with this code, but GRT itself.

@royshil royshil changed the title PyGRT: initial commit. pygrt build pipeline. barebones examples PyGRT: Python bindings for GRT via SWIG Jul 19, 2018

royshil added some commits Jul 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.