Giter Site home page Giter Site logo

Comments (6)

gustavla avatar gustavla commented on July 20, 2024

Thanks for trying out the KNN and letting us know that you're interested in exporting it to Core ML! Unfortunately, the KNN model is currently not supported in Core ML. I think that's currently the only classifier that is not supported, so hopefully you can find another model that suits your needs.

If you let us know what kind of model you are building, we might be able to give you a suggestion for another classifier that does support Core ML deployment.

from turicreate.

srikris avatar srikris commented on July 20, 2024

Thanks for trying out Turi Create. We will be working hard to make sure everything can be deployed. Currently, the list of deployable models are:
https://apple.github.io/turicreate/docs/userguide/deployment/introduction.html

Could share with us what the distance function you are using? Is it the default one? That would really help us.

from turicreate.

johnlev avatar johnlev commented on July 20, 2024

I was using the default one, yes

from turicreate.

rringham avatar rringham commented on July 20, 2024

Is there any plan to make this exportable? Disappointed that it's not currently - would be extremely interested in having this exportable to CoreML - would also be good if the documentation clearly indicated this type of model isn't exportable.

from turicreate.

johnlev avatar johnlev commented on July 20, 2024

I understand why it is currently not supported. KNN is a method of classification that requires packing ALL (or most) of the training data into the model so inputs can be compared to the stored information. This makes it possibly the most heavy weight ML models out there, and it’s results can still be matched using Gaussian Bayesian classifiers, SVMs, and more. I would understand if Apple was not interested in exporting a model that might be larger than the destination app itself when a smaller model can be achieved using another method with just as accurate results (in most cases).

Thanks for all the help, but unless it is an intended upgrade for the future we can close this.

from turicreate.

triztian avatar triztian commented on July 20, 2024

I just ran into this issue, from looking at the documentation I thought it'd be possible to use turicreate to train and export the model, considering that it is listed in the docs:

I think it should be added as it'd make the ML toolset much more complete. I initially chose KNN because I have a relative small dataset. I tried first training KNN using SKLearn and using coremltools 4.0 to convert it to CoreML but the *.mlmodel was invalid. Failing that I tried to use turicreate directly to create the KNN model but seems like that might not be an option either.

from turicreate.

Related Issues (20)

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.