Plain and Simple Estimators

Ғылым және технология

In this episode of AI Adventures, it's time to write some TensorFlow code! We'll build a linear model to recognize different kinds of flowers using a canned estimator.
Learn more through our hands-on labs → goo.gle/2B2f0Kp
Associated Medium post - Plain and Simple Estimators: goo.gl/L2YUbk
Jupyter notebook: jupyter.org/
Code from this episode: goo.gl/ChcaM9
TensorFlow Estimators: goo.gl/r1tZUW
Dataset: goo.gl/UtccyH
Watch more episodes of AI Adventures: goo.gl/UC5usG
Subscribe to get all the episodes as they come out: goo.gl/S0AS51
#AIAdventures

Пікірлер: 102

  • @mawkli7afee
    @mawkli7afee2 жыл бұрын

    this video was created with tensorflow V 1.3.0, todays version is 2.9.1. contrib is removed. please consider updating the video.

  • @dingaroo2003
    @dingaroo20036 жыл бұрын

    Hi Yufeng, great video. However, when I tried to code it by hand, or even use the notebook you supplied, I realised that my Tensorflow is version 1.1 instead of 1.3 that you have. And this is in January 2018. Secondly, for a novice, you left out the data files needed for this short exercise. Yes, I understand that this is supposed to be a quick (and dirty) intro. However, the data that I downloaded, has not been wrangled yet. As you use numeric targets, instead of the flower name, can you explain which flower you assigned the value 0, 1 and 2. Lastly, the code to to load the training data does not work, which I suspect has to do with the Iris data file I downloaded from the wiki website. The data preparation is important, and you have left out this stage and not let us know this part of the workflow. Nonetheless, I truly enjoy the series of videos you have created. Thank you.

  • @rakeshmallick27
    @rakeshmallick276 жыл бұрын

    Wondeful. Looking forward to using Tensor flow soon.

  • @CARECTS
    @CARECTS4 жыл бұрын

    Yufeng, your job is really good in having these videos to teach ML for people. My only advice is to number the videos, so that people like us in Africa will find it easy to follow the videos to learn ML/AI

  • @sonjoysengupto
    @sonjoysengupto5 жыл бұрын

    Awesome series!!! Thanks a lot.

  • @hahahehehoho8191
    @hahahehehoho81916 жыл бұрын

    nice series.. looking forward to watch the new video 👍🏻

  • @sfincione2000
    @sfincione20006 жыл бұрын

    This is quite a nice intro to ML. I like the idea.

  • @alokdudwe2779
    @alokdudwe27796 жыл бұрын

    very nice video greate to learn machine learning in simple way

  • @owen_nx
    @owen_nx4 жыл бұрын

    We did the same example in Multivariate Analysis. Really concise and simple to follow video. But how would we do it using images?

  • @Albert-fe8jx
    @Albert-fe8jx6 жыл бұрын

    Excellent. Brief. Clear. Thoughtfully highlighted and focused presentation. Mr. Guo easily understood.

  • @keqiangli5377
    @keqiangli53776 жыл бұрын

    So basically we need to convert the Species column to integers? When watching this tutorial, somehow I feel like that the csv loading function will convert them into factors by default. If a conversion is required, why isn't the processed data provided for downloading? Thanks

  • @zoomanimation420
    @zoomanimation4203 жыл бұрын

    Awesome Playlist!

  • @alexandrunknown1456
    @alexandrunknown14564 жыл бұрын

    Great job,man!

  • @SantoshGupta-jn1wn
    @SantoshGupta-jn1wn5 жыл бұрын

    It seems that the sessions run through a Estimator are not quite the same as a normal session? For example, `.eval.()` operation and the `tf.nn.sampled_softmax_loss` function do not work, when they do for a normal session. Would love to hear some details on this phenomenon.

  • @Markdeme
    @Markdeme6 жыл бұрын

    How do you create a prediction based on this model ?

  • @salesmanaction8368
    @salesmanaction83686 жыл бұрын

    Great but could your help me what information i have to study to deeper understand it all?

  • @ergotaxiakos3094
    @ergotaxiakos30944 жыл бұрын

    Very good job !!! Its first time that understand the ML Please go on

  • @davidgarrido9918
    @davidgarrido99183 жыл бұрын

    Whats the best way to start to get familiar with what is explained in the video? Thanks!

  • @aniqohhanahaura9089
    @aniqohhanahaura9089 Жыл бұрын

    Hello, I have watched your videos and I like it. I try the code in my computer but my TensorFlow version is 2.0 so there is no .contrib module anymore, do you know what module can I use in my TensorFlow?

  • @emmanuelskywalker1581
    @emmanuelskywalker15815 жыл бұрын

    AWESOME! thanks for this video series.

  • @yashvardhansharma3899

    @yashvardhansharma3899

    5 жыл бұрын

    Oh thanks

  • @dominiclapitan8466
    @dominiclapitan84666 жыл бұрын

    How do you predict, given a single feature (e.g. [6.4, 3.2, 4.5, 1.5]) using classifier.predict()?

  • @mariyanacholakova5640
    @mariyanacholakova56406 жыл бұрын

    Does base.load_csv_with_header takes target as the last column of the table in : base.load_csv_with_header(filename=IRIS_TRAINING, features_dtype=np.float32, target_dtype=np.int)

  • @faridcheikhmousa6709
    @faridcheikhmousa67095 жыл бұрын

    Hello I really appreciate your job :) I wish if you use little examples for each step and be little slower please.

  • @robinstraube9335

    @robinstraube9335

    4 жыл бұрын

    jup that was hard to follow if you're new to this

  • @subhamagrawal4740
    @subhamagrawal47405 жыл бұрын

    Is there any demo with javascript?

  • @myildizhan
    @myildizhan6 жыл бұрын

    Hi, thanks for the videos. I am new at AI and ML. I am trying to make practice with python 3 as possible as I can. This sample witch you show in the video give me an unexpected error. Where can I put the screan? I cant find an answer online.

  • @ayushsahu5053

    @ayushsahu5053

    6 жыл бұрын

    It'd be easier to help if you would specify the error, sir.

  • @christinthomas5320
    @christinthomas53206 жыл бұрын

    Fantastic!

  • @aldeaciencia2421
    @aldeaciencia24215 жыл бұрын

    Why do not work with the cost function in this example?

  • @lggood8375
    @lggood83753 жыл бұрын

    Is it important to know Tensor Flow and Python Pytorch? Which is more popular and being used by companies in the work force ? Thanks

  • @bigdbassn4489
    @bigdbassn44894 жыл бұрын

    I cannot grasp the term classifier. Can you elaborate on this term please? Thank you!

  • @AndresCosme01
    @AndresCosme015 жыл бұрын

    Great video! Just one thing, Im using python 3.6 but when reaching the part of code "classifier = tf.estimator.LinearClassifier" it gives me this error "AttributeError: module 'tensorflow.python.estimator.estimator_lib' has no attribute 'LinearClassifier'"

  • @user-kz3cw8pm6l

    @user-kz3cw8pm6l

    2 жыл бұрын

    Where I can study very well

  • @PamirTea
    @PamirTea6 жыл бұрын

    great video.

  • @nitikaagarwal1505
    @nitikaagarwal15056 жыл бұрын

    As some of the functions have become deprecated, can you please update the code? Also, I couldn't find the documentation of tf.estimator.LinearClassifier. Can you please provide the link of the documentation?

  • @yutaotech1262

    @yutaotech1262

    5 жыл бұрын

    He wears a ring

  • @SamuelChan

    @SamuelChan

    5 жыл бұрын

    The deprecated functions to working with CSV can be replaced following the answer here stackoverflow.com/a/52662295/7515530;

  • @RaviTeja-kc5vx
    @RaviTeja-kc5vx6 жыл бұрын

    what programming language will we use to write that code

  • @jonathanperez5599

    @jonathanperez5599

    6 жыл бұрын

    Python I strongly advise you to install Anaconda yo will be able to install jupyter notebook, numpy and pandas in one step

  • @ironmantooltime

    @ironmantooltime

    6 жыл бұрын

    jonathan perez good tip

  • @calvinbernard

    @calvinbernard

    5 жыл бұрын

    Did he write in R or Python? Also is it possible to jump right into writing machine learning models without fully understanding the basics of Python?(if Python is your choice of language)

  • @merttemiz7217

    @merttemiz7217

    5 жыл бұрын

    @@calvinbernard It is possible until some level however you better learn the basics if you like to write machine learning(you can check codeacademy or hackerrank)

  • @arjjun.g750
    @arjjun.g7503 жыл бұрын

    it would be great if you could explain all lines of code @gcp

  • @vivekreddy4999
    @vivekreddy49996 жыл бұрын

    do we need python 3 for this?

  • @lifasahaafansa8702
    @lifasahaafansa87026 жыл бұрын

    Wow... superb

  • @khaem9675
    @khaem96756 жыл бұрын

    Finally... The place to learn ML :)

  • @th3godfath3r49

    @th3godfath3r49

    2 жыл бұрын

    where can I get complete course of ML for free?

  • @martinalexander9210
    @martinalexander92106 жыл бұрын

    for thos interested in grabbing the actual csv files he's referencing in this video they are at the following url: - download.tensorflow.org/data/iris_training.csv - download.tensorflow.org/data/iris_test.csv Thank you Google for this insightful ML tf video.

  • @FilippoDeltaecho
    @FilippoDeltaecho6 жыл бұрын

    Thanks very much for the explanation boy!

  • @PHlophe

    @PHlophe

    6 жыл бұрын

    are we being racist now ? unprovoked even ?

  • @FilippoDeltaecho

    @FilippoDeltaecho

    6 жыл бұрын

    Lechiffresix six no.... why?

  • @810liga2
    @810liga26 жыл бұрын

    Where to download the CSVs? Can anybody tell me how to do that?

  • @pleabargain

    @pleabargain

    6 жыл бұрын

    google the data files... you can find them at github and other places.

  • @dusanmadar2406

    @dusanmadar2406

    6 жыл бұрын

    download.tensorflow.org/data/iris_training.csv, download.tensorflow.org/data/iris_test.csv

  • @thlu308
    @thlu3086 жыл бұрын

    Does this example work with Python3?

  • @AnkitBindal97

    @AnkitBindal97

    6 жыл бұрын

    Yes

  • @MetaLife-cw3gy
    @MetaLife-cw3gy25 күн бұрын

    Very nice intro to ML

  • @nachobagnato
    @nachobagnato6 жыл бұрын

    I followed this example and it works great BUT... I wanted to predict some values, lets say: [6.4, 3.2, 4.5, 1.5] How can I do that? I tried several ways using classifier.predict() but always got errors. Do someone know how to code a "single" prediction? (please give a working example!)

  • @nachobagnato

    @nachobagnato

    6 жыл бұрын

    Sorry, you did not understand my question. I train the whole dataset but I mean That I want to predict a NEW value (a "single prediction" over the trained model). By the way I already solved this!. Thank you for your answer.

  • @pasanmanula6758

    @pasanmanula6758

    6 жыл бұрын

    @nachobagnato , I have the same issue. Could you please tell me how did you manage to solve this problem?

  • @dominiclapitan8466

    @dominiclapitan8466

    6 жыл бұрын

    how did you do it?

  • @JuanRodriguez-mx8vn

    @JuanRodriguez-mx8vn

    5 жыл бұрын

    template = (' Prediction is "{}" ({:.1f}%), expected "{}"') for pred_dict, expec in zip(predictions, expected): class_id = pred_dict['class_ids'][0] probability = pred_dict['probabilities'][class_id] print(template.format(iris_data.SPECIES[class_id], 100 * probability, expec))

  • @JuanRodriguez-mx8vn

    @JuanRodriguez-mx8vn

    5 жыл бұрын

    expected = ['Setosa', 'Versicolor', 'Virginica'] predict_x = { 'SepalLength': [5.1, 5.9, 6.9], 'SepalWidth': [3.3, 3.0, 3.1], 'PetalLength': [1.7, 4.2, 5.4], 'PetalWidth': [0.5, 1.5, 2.1], } predictions = classifier.predict( input_fn=lambda:iris_data.eval_input_fn(predict_x, batch_size=args.batch_size))

  • @lggood8375
    @lggood83753 жыл бұрын

    In addition to knowing AI programming and Python what other languages should we have know for obtaining a job. As a beginner

  • @LoanwordEggcorn

    @LoanwordEggcorn

    3 жыл бұрын

    Python is probably enough for many jobs. It is one of the world's most popular languages for machine learning and many other things.

  • @davidyu1276
    @davidyu12766 жыл бұрын

    Heres the datasets :) download.tensorflow.org/data/iris_test.csv download.tensorflow.org/data/iris_training.csv

  • @jadedvi1044
    @jadedvi10443 жыл бұрын

    Is this still up-to-date?

  • @kaivanshah4304
    @kaivanshah43044 жыл бұрын

    amazing

  • @sahajkapoor4718
    @sahajkapoor47186 жыл бұрын

    Hi can you show a video in detail about this program as I am new in python

  • @pleabargain

    @pleabargain

    6 жыл бұрын

    Python and Jupyter are very powerful... get your Jupyter instance running first... then Python will be much more interesting IMHO.

  • @thaddeusgabara6352
    @thaddeusgabara63525 жыл бұрын

    ******** from tensorflow.contrib.learn.python.learn.datasets import base # Data files IRIS_TRAINING = "iris_training.csv" IRIS_TEST = "iris_test.csv" ******** I thought above code would bring in the training and test data . I get this error NotFoundError: NewRandomAccessFile failed to Create/Open: iris_training.csv : The system cannot find the file specified. ; No such file or directory looks like a great class, but cannot follow on my Jupyter notebook.

  • @actual_random

    @actual_random

    3 жыл бұрын

    yeah they got rid of that module

  • @navpreetsingh3702
    @navpreetsingh37026 жыл бұрын

    Sir, i want to learning very basic level machine learning and AI.

  • @anuragthapa1395
    @anuragthapa13955 жыл бұрын

    I am not sure if I should say I understood. I appreciate your efforts, sadly for a new bee , it could be a hard time understanding what you just taught. You might want to split up the topic into multiple videos and explain elaborately. Nevertheless, your efforts are appreciated.

  • @abdallahelkasass6332
    @abdallahelkasass63325 жыл бұрын

    can you give me iris_traing csv file and also test file

  • @sergeysergey250
    @sergeysergey2506 жыл бұрын

    1. Please show how to predict exported model on PC. 2. Please show how to predict model on PC without exporting.

  • @actual_random
    @actual_random3 жыл бұрын

    Ugh. The tensorflow.contrib module is redundant now. Sad times

  • @sanathboddhula4599
    @sanathboddhula45995 жыл бұрын

    Went to the jupyter notebook and typed what he typed and it didn't work.

  • @ardithaxhikadrija4534

    @ardithaxhikadrija4534

    5 жыл бұрын

    which version of python do you have

  • @spaxxvilejohn9095
    @spaxxvilejohn90954 жыл бұрын

    That code is very difficult to understand....If you can explain the code,it would help

  • @DevTalk
    @DevTalk6 жыл бұрын

    Neat

  • @pleabargain
    @pleabargain6 жыл бұрын

    I'm looking forward to the video that shows the classifiers working in real time e.g. I upload an image and the classifier immediately tells me hot dog | not hot dog.

  • @shreshthsinha4977

    @shreshthsinha4977

    4 жыл бұрын

    Can you tell me what language is he using...is it python?

  • @aravindemails
    @aravindemails6 жыл бұрын

    Sir, can u share Ur codes in github. please provide a Github link.

  • @jt....

    @jt....

    6 жыл бұрын

    The code is in the description, github is not ideal for downloading a single jupyter notebook. You can download it from the link, they give: nbviewer.jupyter.org/gist/yufengg/a6dff912ab48f7a273f5704ad9ab1311

  • @yutaotech1262
    @yutaotech12625 жыл бұрын

    smart guy

  • @vengateshvaidyanathang550
    @vengateshvaidyanathang5503 жыл бұрын

    I am eager to learn ML and UI desinging.. I am in progress of creating my own Web app that helps in education. I am a beginner to ML suggest some books, vidoe link, tutors . to make me better.

  • @Abdulmajeed-sy1us
    @Abdulmajeed-sy1us5 жыл бұрын

    Nothing understood. I thought this series would be useful but.... not able to understand what you are doing. where's the code to copy and how to download data. Actually are we supposed to do the same thing you did in the video or just watch it

  • @audienceslove5742
    @audienceslove57424 жыл бұрын

    Cool grea

  • @cmskzhan
    @cmskzhan6 жыл бұрын

    I converted data, now the csv looks like 6.7,3.3,5.7,2.5,0 6.7,3,5.2,2.3,1 6.3,2.5,5,1.9,2 ... training_set = base.load_csv_with_header(filename=IRIS_TRAINING, features_dtype=np.float32, target_dtype=np.int) ValueError: invalid literal for int() with base 10: 'Sepallength' any tip?

  • @andreww6285
    @andreww62856 жыл бұрын

    牛逼啊!各方面都牛逼!

  • @kakamikadze
    @kakamikadze Жыл бұрын

    this material is outdated!!!

  • @lowaiistan4988
    @lowaiistan49886 жыл бұрын

    No hate but you know what they say, the lower the V the smaller the D. HAHA cheers, great video

  • @vimal8299
    @vimal82999 ай бұрын

    I guess this is definitely not for the beginners who is absolute beginner.

  • @ShusenWang
    @ShusenWang2 жыл бұрын

    estimator is a terriable design

Келесі