17
Prediction API - 11/03/2014 Ludwine Probst

Google Prediction API - Human Talks 11/03/2014

Embed Size (px)

DESCRIPTION

Présentation courte du service Google Prediction API. Peut-être avez-vous déjà eu envie de détecter si un mail était un spam ou non ? Ou encore de savoir si le contenu d'un tweet était positif ou non ? Construire l'algorithme qui va répondre à nos besoins semble complexe. C’est exactement là qu'entre en jeu le Machine Learning (reconnaître des patterns à partir d'exemples de données et obtenir de nouvelles informations). Google Prediction API est un service Google qui : - repose sur des algorithmes de Machine Learning - permet de gérer le stockage de vos données - donne des prédictions en sortie

Citation preview

Page 1: Google Prediction API - Human Talks 11/03/2014

Prediction API

- 11/03/2014

Ludwine Probst

Page 2: Google Prediction API - Human Talks 11/03/2014

y = f(x)

modèle à déterminer

données en entrée

prédiction

Page 3: Google Prediction API - Human Talks 11/03/2014

Ludwine Probst@nivdul

machine learning

big data

mathématiques

pâte à modeler

OPENCLASSROOMS (ex- le Site du Zéro)

Duchess France

Page 4: Google Prediction API - Human Talks 11/03/2014

Build smart apps

Page 5: Google Prediction API - Human Talks 11/03/2014

Exemple

Analyse de sentiment dans un tweet

Page 6: Google Prediction API - Human Talks 11/03/2014

Données en entrée (csv)

label caractéristiques

exemple

texte nombre

Page 7: Google Prediction API - Human Talks 11/03/2014

Google Prediction API< 2,5GB

Google cloud Storage

régression(nombre)

classificationalgos

Interface Google

Page 8: Google Prediction API - Human Talks 11/03/2014

Création du modèle

Page 9: Google Prediction API - Human Talks 11/03/2014

Le modèle

Page 10: Google Prediction API - Human Talks 11/03/2014

Prédiction

Page 11: Google Prediction API - Human Talks 11/03/2014

Update des données

Page 12: Google Prediction API - Human Talks 11/03/2014

Analyse du modèle

Page 13: Google Prediction API - Human Talks 11/03/2014

API JavaPrediction prediction = new Prediction.Builder(httpTransport, JSON_FACTORY,credential) .setApplicationName(APPLICATION_NAME).build();// création du modèle

Training training = new Training();training.setId(MODEL_ID);training.setStorageDataLocation(STORAGE_DATA_LOCATION);prediction.trainedmodels().insert(training).execute();

// création de l’inputInput ?!?!?!Input input = new Input();InputInput inputInput = new InputInput();inputInput.setCsvInstance(Collections.<Object>singletonList("English?"));input.setInput(inputInput);

// prédictionOutput output = prediction.trainedmodels().predict(MODEL_ID, input).execute();

// résultat de la prédictionoutput.getOutputLabel();

Page 14: Google Prediction API - Human Talks 11/03/2014

● documentation (exemples concrets…)● prise en main rapide via l’interface google Prediction● testable rapidemment (via interface)

● limité à des régressions / classifications● sortir sa carte bleue (Google storage)● Java doc● algorithmes utilisés dans l’API non connus

Page 15: Google Prediction API - Human Talks 11/03/2014
Page 16: Google Prediction API - Human Talks 11/03/2014

Quelques liens intéressants

APerçu rapide de Google Prediction APIhttps://www.youtube.com/watch?v=u39rCNFWDEA

Google Prediction API à Google IOhttps://www.youtube.com/watch?v=FJDP_0Mrb-w&feature=youtu.be

Page 17: Google Prediction API - Human Talks 11/03/2014

Installation● compte google● créer un projet via la console google developpers● activer Google Prediction API et Google Storage API

utiliser l’interfaceoutélécharger la librairie de son choix ...