Coder Social home page Coder Social logo

denismurphy / gru-coreml Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 24 KB

CoreML compatible GRU neural network for dynamic prediction

License: MIT License

Python 76.59% Swift 23.41%
coreml gru ios keras nuralnetwork python swift coremltools tensorflow gated-recurrent-unit educational

gru-coreml's Introduction

GRU-CoreML: An CoreML compatible gated recurrent unit neural network for dynamic prediction

Description

This repository contains an implementation of a GRU neural network that can be used in iOS apps with Core ML. The model is trained on user data collected while the app is running (all training on device), making it more accurate over time. The model is able to predict the next enum value based on previous selected enum values and time.

Requirements

  • iOS 13.0+
  • Xcode 11+
  • Python 3+
  • Keras 2.4+
  • Tensorflow 2+
  • Coremltools 4+

Usage

  1. Clone the repository:

git clone https://github.com/denismurphy/gru-coreml.git

  1. Open the project in Xcode and add the Core ML and Core Data frameworks.

  2. Use the provided Python script to train the model on your data.

  3. Convert the trained model to Core ML format using the coremltools package.

  4. Drag and drop the generated .mlmodel file into your Xcode project.

  5. Use the model in your iOS app to make predictions.

  6. Collect data and update the model while the app is running.

Limitations

  • The model is only able to predict the next enum value based on previous selected enum values and time.

  • The accuracy of the model depends on the quality and quantity of the data used to train it.

  • The model is only compatible with iOS 13.0 and above.

Future Work

  • Implementing LSTM in addition to GRU to see which one gives better results
  • Experiment with different architectures like stacked layers, bidirectional layers
  • Implementing more sophisticated data collection and processing methods to improve the model's performance.

Contributions

All contributions are welcome, feel free to submit a pull request or open an issue if you have any suggestions or find any bugs.

Authors

  • Denis Murphy

License

This project is licensed under the MIT License.

gru-coreml's People

Contributors

denismurphy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.