DEV Community

Cover image for 5 Minute AI Model Deployment on DIY Platforms
T Suzuki
T Suzuki

Posted on • Updated on

5 Minute AI Model Deployment on DIY Platforms

Background

While deploying AI models has often proven to be a reasonable
challenge, DIY platforms are changing the rules of the game with
deployment made both easy and swift, even for the relatively
inexperienced.
For most developers, AI model development seems like a nice touch, but the real challenge begins when they need to create and deploy the models.

    The pain points faced along the way include:
  • Understanding feature engineering
  • Understanding the mathematics behind machine learning models and choosing the correct models
  • Designing an interface to access predictive features of AI models
  • Implementing an infrastructure to serve the AI models on a cloud or self hosted platform

As you can see above, these skills require a team of engineers and DevOps which large corporations can afford to hire.
By democratizing AI building, SuperAI creates an enormous value where anyone with meaningful data is able to generate a model and start integrating it back into their application.

How it’s done

  1. Access SuperAI, an AI platform that simplifies model building and deployment.

  2. Signup and create a project. I selected a use case, "Document Classifier". Document classification is to predict the categories from sentences.

  3. While following the instructions on data preparation, I drag-and-dropped the file to upload. It seems to not work if I don't follow the instructions as it is..

  4. There were some warnings on the data; the platform asks me to choose the target column. The target column is what we want to predict the outcome of. In this case, I want to predict the sentiment so, I chose "sentiment" as the target column and the warning is gone.

  5. Now I click the "Train" tab and I can train a model. I've selected 5 minutes as training time but this can be shorter or longer depending on the data size and complexity.

  6. After 5 minutes, I was able to get a model here at 94.75% accuracy. That seems good enough for my application.

  7. Now, I want to deploy this model so I click "Stage" with "Deploy" checked

  8. After some time, it seems deployed

  9. Now I go to "Predict" tab and test that it's working. I entered a sentence to predict then I was able to get the categorized outcomes with their confidence level.

  10. Then I generated the API key and tested in Terminal to verify the results

Great! Now I can integrate this back into my application
It seems like the tip is to understand your data and format it in a way that they accept it. If the data does not make sense, you would expect a model with bad accuracy. If the data is not formatted correctly, it does not seem to parse well.

Conclusion

DIY AI platforms are changing the rules of the game as far as outputting an AI model relatively good and very quickly.
As long as you understand your data, the rest of the pipeline is quite straightforward. I hope this DIY AI platform improves so that it can handle more use cases and wider range of data formats.

Thanks for reading,

Top comments (0)