Тёмный

Plain and Simple Estimators 

Google Cloud Tech
Подписаться 1,2 млн
Просмотров 210 тыс.
50% 1

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

Опубликовано:

 

10 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 104   
@mawkli7afee
@mawkli7afee 2 года назад
this video was created with tensorflow V 1.3.0, todays version is 2.9.1. contrib is removed. please consider updating the video.
@CARECTS
@CARECTS 5 лет назад
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
@dingaroo2003
@dingaroo2003 6 лет назад
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.
@Albert-fe8jx
@Albert-fe8jx 7 лет назад
Excellent. Brief. Clear. Thoughtfully highlighted and focused presentation. Mr. Guo easily understood.
@aniqohhanahaura9089
@aniqohhanahaura9089 2 года назад
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?
@faridcheikhmousa6709
@faridcheikhmousa6709 5 лет назад
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
@alokdudwe2779
@alokdudwe2779 7 лет назад
very nice video greate to learn machine learning in simple way
@martinalexander9210
@martinalexander9210 6 лет назад
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.
@kakamikadze
@kakamikadze 2 года назад
this material is outdated!!!
@ZoomAnimationHere
@ZoomAnimationHere 3 года назад
Awesome Playlist!
@davidgarrido9918
@davidgarrido9918 3 года назад
Whats the best way to start to get familiar with what is explained in the video? Thanks!
@ergotaxiakos3094
@ergotaxiakos3094 4 года назад
Very good job !!! Its first time that understand the ML Please go on
@owen_nx
@owen_nx 4 года назад
We did the same example in Multivariate Analysis. Really concise and simple to follow video. But how would we do it using images?
@rakeshmallick27
@rakeshmallick27 7 лет назад
Wondeful. Looking forward to using Tensor flow soon.
@mariyanacholakova5640
@mariyanacholakova5640 6 лет назад
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)
@davidyu1276
@davidyu1276 6 лет назад
Heres the datasets :) download.tensorflow.org/data/iris_test.csv download.tensorflow.org/data/iris_training.csv
@SantoshGupta-jn1wn
@SantoshGupta-jn1wn 5 лет назад
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.
@sfincione2000
@sfincione2000 7 лет назад
This is quite a nice intro to ML. I like the idea.
@keqiangli5377
@keqiangli5377 7 лет назад
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
@bigdbassn4489
@bigdbassn4489 4 года назад
I cannot grasp the term classifier. Can you elaborate on this term please? Thank you!
@DeathSins_Game
@DeathSins_Game 4 месяца назад
Very nice intro to ML
@nitikaagarwal1505
@nitikaagarwal1505 6 лет назад
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 6 лет назад
He wears a ring
@SamuelChan
@SamuelChan 6 лет назад
The deprecated functions to working with CSV can be replaced following the answer here stackoverflow.com/a/52662295/7515530;
@dominiclapitan8466
@dominiclapitan8466 6 лет назад
How do you predict, given a single feature (e.g. [6.4, 3.2, 4.5, 1.5]) using classifier.predict()?
@sonjoysengupto
@sonjoysengupto 6 лет назад
Awesome series!!! Thanks a lot.
@lggood8375
@lggood8375 4 года назад
Is it important to know Tensor Flow and Python Pytorch? Which is more popular and being used by companies in the work force ? Thanks
@aldeaciencia2421
@aldeaciencia2421 6 лет назад
Why do not work with the cost function in this example?
@Markdeme
@Markdeme 6 лет назад
How do you create a prediction based on this model ?
@emmanuelskywalker1581
@emmanuelskywalker1581 5 лет назад
AWESOME! thanks for this video series.
@yashvardhansharma3899
@yashvardhansharma3899 5 лет назад
Oh thanks
@thaddeusgabara6352
@thaddeusgabara6352 6 лет назад
******** 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
@salesmanaction8368
@salesmanaction8368 6 лет назад
Great but could your help me what information i have to study to deeper understand it all?
@myildizhan
@myildizhan 7 лет назад
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 7 лет назад
It'd be easier to help if you would specify the error, sir.
@RaviTeja-kc5vx
@RaviTeja-kc5vx 7 лет назад
what programming language will we use to write that code
@jonathanperez5599
@jonathanperez5599 7 лет назад
Python I strongly advise you to install Anaconda yo will be able to install jupyter notebook, numpy and pandas in one step
@ironmantooltime
@ironmantooltime 7 лет назад
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)
@hahahehehoho8191
@hahahehehoho8191 7 лет назад
nice series.. looking forward to watch the new video 👍🏻
@cmskzhan
@cmskzhan 6 лет назад
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?
@AndresCosme01
@AndresCosme01 5 лет назад
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 3 года назад
Where I can study very well
@subhamagrawal4740
@subhamagrawal4740 5 лет назад
Is there any demo with javascript?
@alexandrunknown1456
@alexandrunknown1456 5 лет назад
Great job,man!
@spaxxvilejohn9095
@spaxxvilejohn9095 4 года назад
That code is very difficult to understand....If you can explain the code,it would help
@nachobagnato
@nachobagnato 7 лет назад
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
@lggood8375 4 года назад
In addition to knowing AI programming and Python what other languages should we have know for obtaining a job. As a beginner
@LoanwordEggcorn
@LoanwordEggcorn 4 года назад
Python is probably enough for many jobs. It is one of the world's most popular languages for machine learning and many other things.
@810liga2
@810liga2 6 лет назад
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
@christinthomas5320
@christinthomas5320 7 лет назад
Fantastic!
@arjjun.g750
@arjjun.g750 3 года назад
it would be great if you could explain all lines of code @gcp
@actual_random
@actual_random 3 года назад
Ugh. The tensorflow.contrib module is redundant now. Sad times
@thlu308
@thlu308 7 лет назад
Does this example work with Python3?
@AnkitBindal97
@AnkitBindal97 7 лет назад
Yes
@anuragthapa1395
@anuragthapa1395 5 лет назад
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.
@khaem9675
@khaem9675 7 лет назад
Finally... The place to learn ML :)
@th3godfath3r49
@th3godfath3r49 3 года назад
where can I get complete course of ML for free?
@FilippoDeltaecho
@FilippoDeltaecho 6 лет назад
Thanks very much for the explanation boy!
@PHlophe
@PHlophe 6 лет назад
are we being racist now ? unprovoked even ?
@FilippoDeltaecho
@FilippoDeltaecho 6 лет назад
Lechiffresix six no.... why?
@jadedvi1044
@jadedvi1044 3 года назад
Is this still up-to-date?
@lifasahaafansa8702
@lifasahaafansa8702 6 лет назад
Wow... superb
@kaivanshah4304
@kaivanshah4304 5 лет назад
amazing
@vivekreddy4999
@vivekreddy4999 6 лет назад
do we need python 3 for this?
@Abdulmajeed-sy1us
@Abdulmajeed-sy1us 5 лет назад
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
@PamirTea
@PamirTea 6 лет назад
great video.
@sanathboddhula4599
@sanathboddhula4599 5 лет назад
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
@vengateshvaidyanathang550
@vengateshvaidyanathang550 4 года назад
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.
@sahajkapoor4718
@sahajkapoor4718 7 лет назад
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.
@abdallahelkasass6332
@abdallahelkasass6332 5 лет назад
can you give me iris_traing csv file and also test file
@sergeysergey250
@sergeysergey250 7 лет назад
1. Please show how to predict exported model on PC. 2. Please show how to predict model on PC without exporting.
@aravindemails
@aravindemails 7 лет назад
Sir, can u share Ur codes in github. please provide a Github link.
@jt....
@jt.... 7 лет назад
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
@pleabargain
@pleabargain 6 лет назад
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?
@navpreetsingh3702
@navpreetsingh3702 6 лет назад
Sir, i want to learning very basic level machine learning and AI.
@audienceslove5742
@audienceslove5742 5 лет назад
Cool grea
@DevTalk
@DevTalk 7 лет назад
Neat
@yutaotech1262
@yutaotech1262 6 лет назад
smart guy
@emotionblur7214
@emotionblur7214 12 дней назад
I enrolled into EITC AI certification, I have been trying to run this example for two days and... I received a nice welcome to tensorflow. This is full of deprecated code, and replacing it is a PITA. The documentation is a mess, this example is lost in history and it's time for an update... that will also be temporary anyway . What a crappy way to mantain a codebase, and making examples on a tutorial video based in a temporary-meant-to-be-removed "contrib" namespace is very nerdy and amateurish to say the least.
@lorisveronese4918
@lorisveronese4918 8 дней назад
Just go to the section "Recent updates list" of the Textual didactic materials. There you can find explanations on how to install the software needed, and the updated Python code for the Iris example. Since it's been updated on 30th October 2023, it works correctly with TensorFlow 2.x
@ShusenWang
@ShusenWang 2 года назад
estimator is a terriable design
@vimal8299
@vimal8299 Год назад
I guess this is definitely not for the beginners who is absolute beginner.
@andreww6285
@andreww6285 7 лет назад
牛逼啊!各方面都牛逼!
@lowaiistan4988
@lowaiistan4988 6 лет назад
No hate but you know what they say, the lower the V the smaller the D. HAHA cheers, great video
Далее
Serverless Predictions at Scale
4:43
Просмотров 69 тыс.
Jupyter Tips and Tricks
6:10
Просмотров 167 тыс.
Что думаете?
00:54
Просмотров 564 тыс.
What are AI Agents?
12:29
Просмотров 348 тыс.
Scaling up Keras with Estimators
9:10
Просмотров 8 тыс.
Tensorflow Tutorial for Python in 10 Minutes
11:33
Просмотров 436 тыс.
Why I stopped using Jupyter Notebooks
11:17
Просмотров 14 тыс.
Natural Language Generation at Google Research
14:40
Просмотров 116 тыс.
What is Machine Learning?
5:23
Просмотров 1 млн
ML Was Hard Until I Learned These 5 Secrets!
13:11
Просмотров 292 тыс.
11. Introduction to Machine Learning
51:31
Просмотров 1,6 млн
AI Platform Training with built-in algorithms
6:15
Просмотров 21 тыс.