Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cloud-powered AI with GCP

Cloud-powered AI with GCP

My talk at "AI in the Cloud" at Islamabad

Sheharyar Naseer

July 18, 2019
Tweet

More Decks by Sheharyar Naseer

Other Decks in Technology

Transcript

  1. Cloud Powered AI

    with Google Cloud Pla3orm

    View full-size slide

  2. @sheharyarn ! " #
    Sheharyar Naseer

    View full-size slide

  3. AI is cool...
    • ...but how do I get sta0ed?

    • as a So4ware Developer

    • as a Sta0up founder

    • Which algorithms & frameworks?

    • Find data? Train models?

    • I just want intelligent automation

    View full-size slide

  4. ML as a Service

    View full-size slide

  5. Google Cloud Pla3orm
    • Data Management

    • Compute Services

    • Networking

    • Internet of Things

    • AI & Machine Learning

    View full-size slide

  6. Pre-trained Models
    with Cloud AI Building Blocks to accomplish common tasks
    Vision
    Video
    Translation
    Natural Language
    DialogFlow
    Text-to-Speech
    Speech-to-Text
    AutoML
    Recommendations
    Cloud Inference
    SIGHT LANGUAGE CONVERSATION STRUCTURED DATA

    View full-size slide

  7. Vision API
    • Detect Objects and Landmarks

    • OCR: Printed & HandwriSen

    • Detect Faces and Facial aSributes

    • Product Search & Logo Detection

    • Explicit Content Detection

    • Image Labelling

    View full-size slide

  8. Vision: Face Detection
    // Create client
    const vision = require('@google-cloud/vision');
    const client = new vision.ImageAnnotatorClient();
    // Detect Faces
    const image = './my-image.jpg';
    const [result] = await client.faceDetection(image);
    const faces = result.faceAnnotations;

    View full-size slide

  9. Vision: Label Detection
    // Detect Labels
    const [result] = await client.labelDetection(image);
    const labels = result.labelAnnotations;
    Labels Scores
    Street 0.873
    Snapshot 0.852
    Town 0.848
    Night 0.804
    Alley 0.713

    View full-size slide

  10. Natural Language API
    • Syntax Detection

    • Entity Extraction

    • Sentiment Analysis

    • Content ClassiVcation

    • Multilingual Suppo0

    View full-size slide

  11. Language: Syntax
    // Create client
    const language = require('@google-cloud/language');
    const client = new language.LanguageServiceClient();
    // Detect Syntax
    const document = {content: text, type: 'PLAIN_TEXT'};
    const [result] = await client.analyzeSyntax({document});

    View full-size slide

  12. Language: Syntax

    View full-size slide

  13. Language: Sentiment
    // Analyze Sentiment
    const document = {content: text, type: 'PLAIN_TEXT'};
    const [result] = await client.analyzeSentiment({document});
    Sentence Score Sentiment
    Inception is one of the best movies of all time +0.9 Extremely Positive
    I think everyone should watch it +0.1 Neutral
    The food was really bad at that restaurant -0.9 Extremely Negative
    Though I enjoyed their drinks +0.7 Very Positive

    View full-size slide

  14. Language: ClassiNcation
    // Classify Text
    const document = {content: text, type: 'PLAIN_TEXT'};
    const [result] = await client.classifyText({document});
    {
    categories: [
    {
    name: '/Food & Drink/Cooking & Recipes',
    confidence: 0.85
    },
    {
    name: '/Food & Drink/Food/Meat & Seafood',
    confidence: 0.63
    },
    ...
    ]
    }

    View full-size slide

  15. Prediction Customization

    View full-size slide

  16. AutoML
    • Custom Training Data & Prediction Tasks

    • Vision: Image ClassiVcation

    • Language: Text ClassiVcation

    • Google's Data Models

    • Customize pre-trained API

    • Access using REST

    View full-size slide

  17. Roll your own

    View full-size slide

  18. AI Pla3orm
    • Build, train & serve your own models

    • AI Pla[orm Notebooks

    • Integrate with BigQuery, Dataproc & Data]ow

    • Deep Learning Images

    • Tenso^low, PyTorch, Keras, etc.

    View full-size slide

  19. Thank you!
    Find these slides: to.shyr.io/gcp-cloud-ai
    !
    !
    #
    shyr.io
    [email protected]
    sheharyarn

    View full-size slide