Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cocoa-ai/NamesCoreMLDemo

🏷 iOS11 demo application for predicting gender from first names.
https://github.com/cocoa-ai/NamesCoreMLDemo

classification coreml coreml-models gender-classification ios machine-learning nlp swift swift4

Last synced: 3 months ago
JSON representation

🏷 iOS11 demo application for predicting gender from first names.

Awesome Lists containing this project

README

        

# Names CoreML Demo

A Demo application using `CoreML` framework for predicting gender from first
names.


NamesCoreMLDemo

## Model

This demo is based on [An introduction to Machine Learning](http://nlpforhackers.io/introduction-machine-learning/) tutorial, which describes how to build a classifier able to distinguish between
boy and girl names using [datasets](https://www.ssa.gov/oact/babynames/limits.html)
with the popularity of baby names over the years from The US Social Security
Administration.

[CoreML model](https://github.com/cocoa-ai/NamesCoreMLDemo/blob/master/Names/Resources/NamesDT.mlmodel)
was converted from [Scikit-learn Pipeline](http://scikit-learn.org/stable/modules/generated/sklearn.pipeline.Pipeline.html)
using [coremltools](https://pypi.python.org/pypi/coremltools) python package.

## Requirements

- Xcode 9
- iOS 11

## Installation

```sh
git clone https://github.com/cocoa-ai/NamesCoreMLDemo.git
cd NamesCoreMLDemo
open Names.xcodeproj/
```

Build the project and run it on a simulator or a device with iOS 11.

## Conversion

```sh
cd Convert
python names.py
```

## Author

Vadym Markov, [email protected]

## Credits

- [Is it a boy or a girl? An introduction to Machine Learning](http://nlpforhackers.io/introduction-machine-learning/) from http://nlpforhackers.io

## References
- [Apple Machine Learning](https://developer.apple.com/machine-learning/)
- [CoreML Framework](https://developer.apple.com/documentation/coreml)
- [coremltools](https://pypi.python.org/pypi/coremltools)