Тёмный

Coding Challenge #70: Nearest Neighbors Recommendation Engine - Part 1 

The Coding Train
Подписаться 1,7 млн
Просмотров 69 тыс.
50% 1

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

 

24 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 83   
@PierreLaBaguette
@PierreLaBaguette 6 лет назад
for those who miss what it's supposed to be all about, like what he's actually building, he says it at 26:18
@DennisRasmussen
@DennisRasmussen 7 лет назад
Some feedback: 1) A dropdown (select) option can have a different value than its visual text, so I would use the index from the data loop as the value for every option. Whatever option is then selected, the selected value would match the user index of the data feed. 2) The movies could be in a subarray/subobject. When looping through the data the first time (to create the options) you could re-/move the movie titles into a new subobject for every user, so you wouldn't have to get rid of name and timestamp. less code too. This should be less code overall and hopefully still be understandable for new coders :)
@TheCodingTrain
@TheCodingTrain 7 лет назад
Yes, these are great suggestions!
@Glyn-Leine
@Glyn-Leine 7 лет назад
8:05 after saying that there's no jr, there's a moment. idk how to call it.. but it seems kindah sad ish.
@pvic6959
@pvic6959 5 лет назад
we are ALL daniel shiffman juniors on this blessed day :)
@gojke3922
@gojke3922 7 лет назад
This is pleasing to my eyes, and quite educational.
@roronoa_d_law1075
@roronoa_d_law1075 4 года назад
19:06 -> in my head : "oh he made a mistake, he wrote name1 twice" 21:19 -> in my head : "actually, even if you don't, cause you made a mistake earlier. Well, you're going to find out :)"
@PDihax
@PDihax 7 лет назад
Dude! your videos are great!!, I started to learn coding because of you! :D, Keep doing this.
@TheCodingTrain
@TheCodingTrain 7 лет назад
Thank you!
@biljxmusics5352
@biljxmusics5352 3 года назад
@@TheCodingTrain Hey man, i love your videos, i clearly understand your explanation but i had a doubt and i want to ask you something, in knn algorithm what if the data looks like this,: user1: { movie1: 5, movie2: 2, movie3: 1, }, user2: { movie1: 1, movie2: 2, movie3: 5, } wouldnt their similarity score be the same even tho their rating for movies are different. And how would recomendation system work in that situation. I would really appreciate if you reply, as i want to learn abt machine learning more.
@popeygilbert8744
@popeygilbert8744 7 лет назад
When you were creating the name lookup table, did you ever consider setting the value of the dropdown menu to be the index of each user and the name of drop-down menu to be to be the human readable name? Then you shouldn't have the problem of doubling the space required for your application to run. Something like `${name}`?
@NickKartha
@NickKartha 5 лет назад
Would love an updated challenge based on the recommendation problem.
@roamingcelt
@roamingcelt 3 года назад
As soon as you remove the nulls you scew your average. Knowing this you might give your nulls your smallest rating -1. This if one person has a null you can still calc without throwing off the average.
@sadhlife
@sadhlife 7 лет назад
mfw a coding challenge's recommendation engine is better than RU-vid's.
@MrCmon113
@MrCmon113 6 лет назад
RU-vid's recommendations are fantastic. But they are not for your benefit.
@warrenchilambe3927
@warrenchilambe3927 4 года назад
your videos help me to keep going through all the programming struggles.Okay here we go. Say you wanted to write a trending system like youtube, how would you approach this ?, if possible, can you please make a trending system. thanks in advance
7 лет назад
May the fourth be with you! (Even though it's may the ninth.)
@Luke-tu1yc
@Luke-tu1yc 7 лет назад
It's May ninth.
7 лет назад
Umm... whoops. My eyes and brains clearly don't have the force with 'em
@steveburrus9347
@steveburrus9347 6 лет назад
Gee whiz I wish that your sense of humor was better.
@sadhlife
@sadhlife 7 лет назад
*100th Coding Challenge Video!!!*
@KanalMcLP
@KanalMcLP 7 лет назад
and exactly 250.000 subs
@TheCodingTrain
@TheCodingTrain 7 лет назад
Oh, I didn't realize this! (Am counting based on topic not number of videos)
@krl_xants
@krl_xants 7 лет назад
thanks for all your hard work
@darkpaxgaming
@darkpaxgaming Год назад
Hi I try to build in gdevelop. All fine until neighbor now. It should be a farming Programm and in it are different crops who are able to place on a grid. Now my problem is how to know the different neighbors on the grid, who shouldn’t be able to plant near each other. I want to search before I select a new crop from my menu. In example I plant garlic and want to vanish or hide all crops in the menu who can’t be planted around the garlic. So it’s easier to see what exact crops I can plant around each other.
@harshagrawal852
@harshagrawal852 5 лет назад
I didn't understand the last example. If Chewbacca is rating every movie 1 or 2 stars and Ewok is rating every movie 4 or 5 then how can they ever be similar. It leads to the conclusion that Chewbacca doesn't like any sci-fi movies but Ewok likes each one of them. The similar shape of the slope shouldn't matter. RIght?
@Harrythecoder
@Harrythecoder 7 лет назад
I LOVE YOUR VIDEOS
@krishanakhatri8780
@krishanakhatri8780 7 лет назад
You are just Awesome When I first saw your video, I taught we share the same age but no man I am 18 and you looks 18
@lucaxtal
@lucaxtal 7 лет назад
Really great video and good suggestion for the book. Now I'm reading it also... ;-)
@TheCodingTrain
@TheCodingTrain 7 лет назад
Glad to hear!
@tanvishinde805
@tanvishinde805 4 года назад
At 26:47 for discussing shortcomings of Euclidean distance , Ewok rates 4s and 5s and Chewbaca rates 1s and 2s resp. , why do you say that even though distance is high their movie tastes might be similar? i did not get that, please could you explain
@Daniel20030
@Daniel20030 7 лет назад
15:23 Of course! I love your videoes Daniel! (As you can see, we have the same name :) ) Btw 16:57 You could have used forEach, if i remeber correctly?
@biljxmusics5352
@biljxmusics5352 3 года назад
Hey man, i love your videos, i clearly understand your explanation but i had a doubt and i want to ask you something, in knn algorithm what if the data looks like this,: user1: { movie1: 5, movie2: 2, movie3: 1, }, user2: { movie1: 1, movie2: 2, movie3: 5, } wouldnt their similarity score be the same even tho their rating for movies are different. And how would recomendation system work in that situation. I would really appreciate if you reply, as i want to learn abt machine learning more.
@shaunaksen6076
@shaunaksen6076 6 лет назад
movies.json file link: github.com/CodingTrain/website/blob/master/CodingChallenges/CC_070_3_movie_recommender/movies.json
@mariomaic1615
@mariomaic1615 7 лет назад
What else interesting do you read? Can you recommend more books similar to Collective Inteligence that you mentioned at the start of the video? Thanks
@villitriex
@villitriex 7 лет назад
Could you create Sudoku as a coding challenge?
7 лет назад
why indexing by name? just setting the value of the selects by their position in the list is just much better
@pbouzaki
@pbouzaki 7 лет назад
Try using filter method of array to get rid of timestamp and name
@TheCodingTrain
@TheCodingTrain 7 лет назад
Great suggestion!
@blasttrash
@blasttrash 6 лет назад
Haha daniel shiffman junior lol. :P
@wengeance8962
@wengeance8962 7 лет назад
What he made at 14:00 is similar to the _.mapKeys() function from lodash?
@sebastianreddy8455
@sebastianreddy8455 6 лет назад
Does anybody know where I can get the original Star Wars data file, the github source code has a different .json file. I'm completely new to working with data so I am unable to translate what he's writing about moives.json so the code works on ratings.json.
@victorogelle5420
@victorogelle5420 5 лет назад
github.com/CodingTrain/website/blob/master/CodingChallenges/CC_070.1_similarity_score/P5/movies.json
@mattfang714
@mattfang714 7 лет назад
I'm getting an unexpected SyntaxError with the .json file. How can this be fixed?
@rodrigoqteixeira
@rodrigoqteixeira Месяц назад
Someone answered with the name as This Dot 😂😂 Fr check the console in 8:16
@muddasaniupender8454
@muddasaniupender8454 5 лет назад
Can anyone help here , Let's assume , we have 154 sonnets .. how can I built a recommendation system to show related sonnets?(python)
@patricio1989
@patricio1989 2 года назад
How do you convert a form into JSON?
@Victor_Marius
@Victor_Marius 5 лет назад
Instead of: var titles = Object.keys(ratings1); var i = titles.indexOf('name'); titles.splice(i, 1); var j = titles.indexOf('timestamp'); titles.splice(j, 1); for(...){ ... you may consider: delete ratings1.name; delete ratings1.timestamp; var titles = Object.keys(ratings1); for(...){ ... But this will delete the 'name' & 'timestamp' keys from users object because of the referencing of ratings1 to users. or you can use Array.prototype.filter or just var titles = Object.keys(ratings1); for(...){ var title = titles[i]; if(title == 'name' || title == 'timestamp') continue; ... Just a tip to improve it! :D
@shashankmadan1711
@shashankmadan1711 6 лет назад
WHO IS ALCA????
@victorogelle5420
@victorogelle5420 5 лет назад
Is this series a necessary prerequisite for the neural network series?
@TheCodingTrain
@TheCodingTrain 5 лет назад
Not a prerequisite no, but related.
@vijaykumarkari
@vijaykumarkari 7 лет назад
hai..i wanted to develop it in python...so which is the best IDE to develop..will you please suggest me..thank you
@sieve5
@sieve5 7 лет назад
I like JetBrains Python IDE pretty good.
@Swirlstudios
@Swirlstudios 7 лет назад
Why do you never put the videos that you say will be in the description, into the description? Where's the "What is an associative array" video? Love the vids, but always frustrated when I look for the vid and it's not in the desc.
@TheCodingTrain
@TheCodingTrain 7 лет назад
Apologies, I'll add this one!
@Swirlstudios
@Swirlstudios 7 лет назад
Thanks! I appreciate it.
@rodrigoqteixeira
@rodrigoqteixeira Месяц назад
19:10 line 29 NOO YOU FORGOT TO CHANGE IT 😭
@salil.rajkarnikar
@salil.rajkarnikar 3 года назад
is he using node js??
@aasimbaig01
@aasimbaig01 6 лет назад
where can i get google form data??
7 лет назад
Who's Alca?
@inbloom1997
@inbloom1997 4 года назад
es.wikipedia.org/wiki/%C3%81rea_de_Libre_Comercio_de_las_Am%C3%A9ricas
@marcozambello4406
@marcozambello4406 4 года назад
what's about 'Manhattan distance' ? en.wikipedia.org/wiki/Taxicab_geometry
@MrRys
@MrRys 7 лет назад
isn't the Pearson correlation kinda wrong in this case? how someone that rates movies 1-2 has similar taste than I do if I rate those movies 4-5? doesn't he have like the exactly oposite taste?
@Richard77724
@Richard77724 7 лет назад
21:40 LOOL
@syqubic411
@syqubic411 7 лет назад
hello
@darogajee3286
@darogajee3286 6 лет назад
where to download json data...
@victorogelle5420
@victorogelle5420 5 лет назад
github.com/CodingTrain/website/blob/master/CodingChallenges/CC_070.1_similarity_score/P5/movies.json
@vijaykumarkari
@vijaykumarkari 7 лет назад
hai...may i know which IDE you are using to develop it
@KanalMcLP
@KanalMcLP 7 лет назад
i think you should use the nth root and not the sqrt in an ndim space...
@lsdcardgames
@lsdcardgames 7 лет назад
The distance between 2 points is still square root of the square of all differences, for n dimensions.
@vaibhavksh
@vaibhavksh 6 лет назад
I can't find the movies.json used in this video. Found one but it has other content.
@victorogelle5420
@victorogelle5420 5 лет назад
github.com/CodingTrain/website/blob/master/CodingChallenges/CC_070.1_similarity_score/P5/movies.json
@ozankara8133
@ozankara8133 7 лет назад
i passed :D
@oooSIDEooo
@oooSIDEooo 7 лет назад
Not first
Далее
UFC 308: Пресс-конференция
35:18
Просмотров 415 тыс.
Coding Challenge 183: Paper Marbling Algorithm
32:10
Просмотров 77 тыс.
Coding Challenge 185: Unfolding Fractals
31:04
Просмотров 41 тыс.
Coding Challenge #35.2: Lexicographic Order
21:03
Просмотров 165 тыс.
2D Collisions with Quadtree test
1:09
Просмотров 9 тыс.
Coding Challenge #65.1: Binary Search Tree
39:07
Просмотров 354 тыс.