Otto makes machine learning an intuitive, natural language experience. đ Facebook AI Hackathon winner âď¸ #1 Trending on MadeWithML.com âď¸ #4 Trending JavaScript Project on GitHub âď¸ #15 Trending (All Languages) on GitHub
Otto is an intelligent chat application, designed to help aspiring machine learning engineers go from idea to implementation with minimal domain knowledge. Our website features easy model selection, insightful visualizations, and an intuitive natural language experience guiding you every step of the way.
Weâre excited to share that Otto has received a third-place prize at the 2020 Facebook AI Challenge hackathon series for its innovative use of the Wit.ai NLP platform. Congratulations to the other winners, and to everyone who participated!
Beginner-friendly design. Otto is made for novices, as it assumes minimal familiarity with machine learning. Users simply describe their end goals to obtain intelligent recommendations, or can choose from sample datasets to harness our models in an instant.
Powerful machine learning tools. A range of machine learning capabilities are supported, including models for regression, classification and natural language processing, as well as preprocessors tailored to your problem. Play with neural networks, explore data visualizations, and generate ready-made Python code right in your browser!
Educational experience. Users are walked through each stage of the process, with Otto explaining terminology when needed. Annotated code blocks provide eager learners a high-level understanding of their end-to-end pipeline.
To demo some of Ottoâs core features, try out the following:
Say: I want to label flower species by petal length to watch Otto prefill your pipeline components and visualize a nearest neighbors classification for the popular Iris dataset.
Select: Regression > Sample Dataset to preview sample datasets for regression, and discover the strongest predictors using different best fit lines.
Say: Detect fraudulent credit card activity and select the Custom Dataset option to experience Otto-matic model recommendation and an interactive neural network designer.
Say: Iâd like to interpret the mood of a review to query Wit-powered natural language models for live results.
And feel free to get creative! Come up with your own machine learning goals and see where Otto takes you.
Below is a step-by-step breakdown of how Otto works.
One of the biggest obstacles faced by those just getting started with ML is the abundance of jargon, from âloss functionsâ to âcontour boundariesâ â beginners canât be expected to decide what model to use based on cryptic terminology, let alone develop one from scratch! Otto narrows down your options by inferring the high-level task at hand from a simple objective statement.
Task inference is powered by a Wit application (Otto-Task) trained on 300 such statements (e.g. âI want to detect loan applications as fraudulentâ, âhelp me forecast stock pricesâ, or âletâs summarize an article into a paragraphâ) derived from real-world machine learning research. Otto-Task attempts to categorize the task intent as regression, classification, or natural language processing, and additionally extracts a subject entity embodying a streamlined form of the objective in order to filter out extraneous words.
The subject is parsed for keyword matches (âtweetsâ, âhousingâ, etc) against our database of sample datasets. If a relevant dataset is found, Otto pulls the optimal task, model, and preprocessors for the dataset and pre-selects them for the user throughout the pipeline-building process. Otherwise, Otto issues a task recommendation based on the recognized intent. And if no intent was identified, the user is provided with some tips to help them pick the best task themselves.
Users are recommended a specific sample dataset matching their subject, or otherwise offered to preview and choose one themselves. Sample data allows beginners to prototype models quickly and easily, without the complexity of finding a dataset and figuring out the relevant features among dozens. Users may also opt to with their own data, which they can include later on in the generated code.
If the user opted for custom data, Otto leverages Wit to perform the key step of selecting a classifier or regressor. A Wit client (Otto-Model) parses a brief user description of their data for key phrases indicating the desirability of a particular model. Otto-Model includes around 15 phrases and synonyms per model and performs fuzzy string matching, making it an effective and scalable technique for model recommendation.
A characterization of the classification dataset as âsimpleâ or having âjust a few columnsâ, would make the K-Nearest Neighbors algorithm a good choice, while a description of the regression data as âcrime ratesâ or âannual consumer rankingsâ would suggest a Poisson or ordinal model, respectively. If no phrase is flagged, Otto will default to the most general model available: a Neural Network for classification, or a linear fit for regression.
In the case of a natural language task, users can combine multiple models together for a more comprehensive analysis. Otto will recommend both sentiment analysis and entity recognition models, but provides users with information about both in case theyâd like to adjust this. Our NLP models are built on a Wit backend (Otto-NLP) configured to identify built-in traits and entities.
Model Name | Task | Description |
---|---|---|
K-Nearest Neighbors | Classification | Draws class regions by looking at surrounding data |
Neural Network | Classification | Deep learning model suitable for complex datasets |
Linear | Regression | Ordinary linear relationship between variables |
Poisson | Regression | Models count data, which tends to follow a Poisson distribution |
Ordinal | Regression | Learns rankings (e.g. âon a scale of 1-5â) |
Sentiment Analysis | Natural Language | Detects polarity, expressions of thanks, and greetings/goodbyes |
Entity Recognition | Natural Language | Extracts structures such as people, times & locations, and works of art |
What good is a fancy model if it takes ages to train? In this step, Otto swoops in with handpicked preprocessors for the userâs data and model selections, abstracting away the intricacies of feature engineering and dimensionality reduction â machine learning techniques that optimize the data for efficient learning. As always, users can override the recommendations.
Preprocessor Name | Description |
---|---|
Principal Component Analysis | Performs dimensionality reduction and/or feature selection |
Normalization | Scales data to have mean centered at 0 and unit variance |
Text Cleaning | Removes emojis, noisy symbols, and leading/trailing whitespace |
The visualization stage activates for neural network design, or to render any models built on sample data.
Satisfy your curious mind with our fun, interactive network builder!
Otto preconfigures a standard model architecture with research-based activations and initializers, but users are free to tinker with it layer by layer as they wish. Additionally, Otto can perform instant redesigns with the aid of a dedicated Wit model (Otto-Net) that translates user instructions into architecture changes.
Instantly explore how parameters affect KNN clusters and regression slopes!
All done! With your data sorted out, preprocessors set, and model configured, Otto gives you a nice view of your work. For convenience, we offer buttons to copy the code to your clipboard, deploy it to a Google Colab notebook, or restart the process.
Ottoâs modular design makes it readibly extensible, and its use of Wit means its natural language capabilities can be extended to even more domains. Here are just a few things planned for Otto:
Contributions are welcome! Feel free to tackle any of the above items, or anything else. Weâll be reviewing issues and PRs opened on this repo.
Kartik Chugh
Kartik is a second-year at the University of Virginia and currently an intern at Amazonâs Alexa team. An avid open-source contributor, he is passionate about API design and developing cool machine learning tools.
Sanuj Bhatia
Sanuj is a software engineer at Facebook who loves building interactive React-based applications. When possible, he likes to introduce and then fix bugs for maximum impact đ
Thanks to Sean Velhagen for designing the Otto logo!
Thereâs the alliteration, the portrait of the wise owl that comes to mind, the subtle use of OttoMLâŚ