Giter VIP home page Giter VIP logo

robo-design-lstm's Introduction

robo-design-lstm

Torque Prediction

Running TorquePred.py allows user to predict dataset of actuator torque using a history of position and error in velocity. Jupyter notebooks can be used to reference model training procedure.

Example Usage

After downloading or cloning repo:

from TorqueLSTM import LSTM
from TorquePred import TorquePredNN

#load class
model = LSTM()
model = TorquePredNN('/Users/tarsur909/Documents/PythonStuff/lstm_scripted.pt')

#return a dataframe with torque predictions and actual torque values as columns
predictions_df = model.predict('/Users/tarsur909/Documents/PythonStuff/data/data1.0.txt')

#graph predictions of dataset predicted
model.graph_predictions()

TorquePred()

Parameter Name Type Description
model_path str Path to PyTorch model on user device.
history int, default = 8 Number of lookbacks {t, t-1, t-2, ..., t- (n -1)} that the LSTM uses. Don't change value without altering the history in the model code as well.

.predict()

Parameter Name Type Description
dataset str Path to .txt file on user device containing dataset to predict torque. There should be 7 columns, and the olumns should be des_dx, x, theta (pitch), dx, dth, force, and torque, respectively. Fill in a column of zeros for unkown columns.

robo-design-lstm's People

Contributors

tarsur909 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

tsuresh3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.