Candidate Elimination Algorithm Concept | Machine Learning (2019)

Поделиться
HTML-код

Комментарии • 129

  • @RRIITTHHIIKKAA
    @RRIITTHHIIKKAA 5 лет назад +33

    Wow,that was crisp,Really helpful, could have taken two more minutes on version spaces....it is obvious but not until you spend sometime.

  • @vijayabaik5086
    @vijayabaik5086 3 года назад +5

    Wow well explained in short span of time, my lecture took 5 classes to explain this

  • @arpandashore2032
    @arpandashore2032 4 года назад +6

    Bahut accha samajaya he.
    Short me aur perfect.
    Aise hi bnate rho hum like share karte rahege.

  • @ShaanzeBasharat
    @ShaanzeBasharat 3 года назад +1

    i skipped 26 mins lecture to listen thiss and this helped meeee thankyou

  • @apoorvasavitha5512
    @apoorvasavitha5512 4 года назад +2

    Super 😍😍 ty so much for explaining the concept in detail and upload more videos about machine learning so that we can learn more

  • @RAGHAVCOOLSTUFFS
    @RAGHAVCOOLSTUFFS 5 лет назад +1

    Thanks for the explanation, keep up the work bro

  • @roopamam7005
    @roopamam7005 4 года назад +4

    Awesome! Keep rocking

  • @sadafilys
    @sadafilys 5 лет назад +4

    Note: We are using '?' as there are only 2 values of the attributes. In case there would be more than 2 values of the attribute e.g. (Cool,Warm & Hot) and we got just 2 of these (Cool & Warm) so we'll not use '?' but instead of that we'll just use these 2 by using OR sign.

  • @meghanabhushan5875
    @meghanabhushan5875 5 лет назад +1

    Thnk u brooooo. ...vry easy to understand. ..

  • @piyalikarmakar5979
    @piyalikarmakar5979 2 года назад +1

    Beautifully explained..Thanks sir...

  • @tyagiFit
    @tyagiFit 5 лет назад +5

    You are great :) , Nicely explained, Please make more videos on ML topics :)

  • @deepakrajgupta1177
    @deepakrajgupta1177 2 года назад

    thank you for such a easy explanation

  • @dilipkumars6556
    @dilipkumars6556 4 года назад

    Sir this was very much help full

  • @europeinmarathi
    @europeinmarathi 5 лет назад

    hi... I have a numerical data set like two examples say (7,4) and (5,8) classified as +VE and two examples say(1,3) and (3,2) classify as -VE.... how candidate elimination algo ll work on this..

  • @AWSFan
    @AWSFan 3 года назад

    Awesome Explanation!

  • @gillasaiteja4786
    @gillasaiteja4786 5 лет назад

    NYC explanation bro....thank you

  • @HelloWorld-du2pf
    @HelloWorld-du2pf 2 года назад +1

    Tqsm

  • @haneesolanki3346
    @haneesolanki3346 3 года назад +6

    I have 12 minutes left for my quiz. This video saved me! Thanks much!

    • @nishantnesargi91
      @nishantnesargi91 3 года назад +8

      Go prepare for quiz,dont waste time on comments😂

  • @rudranshusingh3621
    @rudranshusingh3621 3 года назад

    Explained it beautifully...except for the last part

  • @kishorkumar1654
    @kishorkumar1654 5 лет назад +2

    Well done

  • @mvaralakshmi1136
    @mvaralakshmi1136 4 года назад +1

    Excellent , Please upload Inductive bias in concept learning

  • @wutuwumu
    @wutuwumu 6 месяцев назад

    helpful, thank you

  • @babhishek4735
    @babhishek4735 4 года назад +1

    What about warm it's also changed to question mark

  • @dreamshazel2320
    @dreamshazel2320 Год назад

    thank you so much 🥰

  • @delmonjohndmello5511
    @delmonjohndmello5511 4 года назад +3

    You explained better than my lecturer. Thank you so mych for the informative concept.

  • @yasarahmedshaik6623
    @yasarahmedshaik6623 3 года назад +1

    thankyou
    but can you explain about the last page i.e version space
    iam unable to understand the last page

  • @vijaypulugari
    @vijaypulugari 2 года назад

    OMG!! Great Videoo!!!

  • @BJ-gj2mv
    @BJ-gj2mv 4 года назад +2

    keep it up bro

  • @pinakadhara7650
    @pinakadhara7650 4 года назад +3

    Thanks a lot bro. Very clear explanation.
    Edit: This video/dataset doesn't cover 1 case,
    Where we encounter negative row witch has attributes matching the specific hypothesis, then those attribute groups are needed to be removed from the general hypothesis.
    For example -
    At the end of this dataset, our general hypothesis is - ['Sunny', '?', '?', '?', '?', '?'], ['?', 'Warm', '?', '?', '?', '?']
    Specific hypothesis - ['Sunny' 'Warm' '?' 'Strong' '?' '?']
    Include [Rainy,Warm,High,Strong,Warm,Change,No] at the end of the dataset. Then, as the 2nd attribute 'Warm' matches with the specific hypothesis, we need to remove the 2nd element from the general hypothesis and the it becomes - ['Sunny', '?', '?', '?', '?', '?'].
    Hope this helps someone!

    • @CodeWrestling
      @CodeWrestling  4 года назад

      Thankssss

    • @gayathrishankar9465
      @gayathrishankar9465 4 года назад

      Sir i got a doubt,, 'warm' in specific and general hypotesis is matching and we removing it then 'sunny' also matching y we kept it remain?

  • @manishrajkhan
    @manishrajkhan 2 года назад +1

    Magical✨

  • @sukhanthsuki73
    @sukhanthsuki73 4 года назад

    Best video.. Awesome

  • @weallarenoobs
    @weallarenoobs 3 года назад +1

    simply super

  • @danishuddin9752
    @danishuddin9752 4 года назад +1

    thanq sir

  • @revasseurborn2000
    @revasseurborn2000 3 года назад +1

    Thanks !

  • @neko_senpaianimeamvedits9598
    @neko_senpaianimeamvedits9598 5 лет назад +29

    How to get the version space diagram

    • @nishads7606
      @nishads7606 4 года назад +2

      the version space diagram lies in between the specific and the generic.. if you notice in the specific hypo.S4 there are 3 values, thus the permutation will be 6.. ie the various combinations of those values together will give the version space..
      please correct me if I am wrong, even I'm not entirely sure about this.

    • @sauravmishra1017
      @sauravmishra1017 4 года назад

      @@nishads7606 Ayee Nishad, teach me also 😂🤣

    • @Praveenkumar-pe6fh
      @Praveenkumar-pe6fh 4 года назад +1

      @@nishads7606 version space with respect to hypothesis space H and training example D, is the subset of hypothesis from H, which are consistent with the training example D.
      So if h is subset of H,
      Then Versions pace = { h∈H | consistent (h,D) }
      PS: consistent means the hypothesis which produces the best fit on training examples.
      Yours truly,
      Praveen

  • @ichirag1362
    @ichirag1362 5 лет назад +2

    PLEASEEE UPLOADDD MOREEE VIDEOSSSS..

  • @ashishrana9836
    @ashishrana9836 4 года назад +17

    What will we have to do if we encounter a -ve attribute at the very beginning????

    • @gajeshladhar3777
      @gajeshladhar3777 4 года назад +1

      swap that , order doesnt matter

    • @arjuna9916
      @arjuna9916 3 года назад

      Use any other value for G1, which is not in that row
      U can refer this: stackoverflow.com/questions/22625765/candidate-elimination-algorithm/22637185

  • @rubymandal4177
    @rubymandal4177 4 года назад

    You did a wonderful job bro. Nice Explanation.

  • @siddharthkshirsagar2545
    @siddharthkshirsagar2545 4 года назад +1

    awesome

  • @mehdijb752
    @mehdijb752 4 года назад

    Thanks man

  • @RahulKumar-de2rw
    @RahulKumar-de2rw 4 года назад

    Thankyou

  • @user-ny2bp7wo7m
    @user-ny2bp7wo7m 4 года назад +2

    Crisp and clear, you made my day! :) Thanks!

  • @SanthoshKumar-kh1lp
    @SanthoshKumar-kh1lp 3 года назад +1

    Plz can u make one more example regarding find s

  • @keerthubabu1337
    @keerthubabu1337 3 года назад

    thank you thank you so much

    • @CodeWrestling
      @CodeWrestling  3 года назад +1

      Anytime!!
      We also do/help in implementing project ideas. Feel free to reach us at codewrestling@gmail.com

  • @vishalkuber3631
    @vishalkuber3631 3 года назад

    hey,,thanks,, u teach better than NITs and IITs teachers

    • @CodeWrestling
      @CodeWrestling  3 года назад

      That's the best comment ever received. Thank you so much.
      We also help in implementing project ideas. Feel free to reach us at codewrestling@gmail.com

  • @chandrakalamadgula3449
    @chandrakalamadgula3449 3 года назад

    Thank you very much

    • @CodeWrestling
      @CodeWrestling  3 года назад

      Anytime!!
      We also do/help in implementing project ideas. Feel free to reach us at codewrestling@gmail.com

  • @sangeethamaryr368
    @sangeethamaryr368 3 года назад

    It was really helpful......Thanks

  • @AnshShrivas
    @AnshShrivas 3 года назад +1

    sir please upload implementation also

  • @ABHINAVKUMAR-dg1fl
    @ABHINAVKUMAR-dg1fl 4 года назад +2

    💯

  • @naturelifestyle9836
    @naturelifestyle9836 4 года назад

    I not understand G4 , can u tell me

  • @ankushhalgekar5690
    @ankushhalgekar5690 2 года назад +1

    Thank you

  • @keremylmaz9595
    @keremylmaz9595 4 года назад +4

    7:40 G4 is and you wrote but its only have sunny, where strong and warmn comes in, in right side u wrote warm only once
    but u said this 2 came from. I didnt get theese table. but thank you.

    • @adityashenoy9887
      @adityashenoy9887 3 года назад +1

      the version space is an intermediate for the specific and generalized hypothesis. So it must satisfy both s4 and g4.

    • @keremylmaz9595
      @keremylmaz9595 3 года назад +2

      @@adityashenoy9887 Thanks for your replay but I already pass the exam 😀

  • @kavie8257
    @kavie8257 5 лет назад +7

    Hi,
    Thanks for the explanation,It is really good :-)
    Can you explain about version space in diagram (Time line : 7:37) ?

    • @CodeWrestling
      @CodeWrestling  4 года назад +1

      That version diagram is arrived from considering various possible hypothesis, it could be explained by taking only 2 or 3 attributes, but with so many it will take a large amount of possible hypothesis.

    • @shireeniqbal7399
      @shireeniqbal7399 4 года назад

      @@CodeWrestling hello sir in version space you have made only three sets can we make more?for example can we make sets of sunny with combination of other attributes?please help me out.thanks

    • @prathyushsunny
      @prathyushsunny 3 года назад

      @@shireeniqbal7399 you can make more such combinations(if there are), but with this particular example though, you won't be able to generate more than those 3 mentioned combinations.

  • @namanbhargava3184
    @namanbhargava3184 3 года назад

    great work dude

    • @CodeWrestling
      @CodeWrestling  3 года назад +1

      Glad it helped!
      We also help in implementing projects. Reach us at codewrestling@gmail.com

  • @mrdavidlie
    @mrdavidlie 5 лет назад +2

    Tbh better than all of my university lecturers combined

  • @user-yu3dq4ju9y
    @user-yu3dq4ju9y 3 года назад

    Thanks. It helped.

  • @harishsundar3409
    @harishsundar3409 5 лет назад

    Nice explanation

  • @ibm-dn6oo
    @ibm-dn6oo 4 года назад

    it's awesome.can u please increase u r voice so it wil be more interactive

    • @CodeWrestling
      @CodeWrestling  4 года назад +1

      yeah we will try to in coming videos

  • @swetharanik1822
    @swetharanik1822 5 лет назад +6

    I didn't get version space between S4 and G4

    • @CodeWrestling
      @CodeWrestling  5 лет назад

      I hope you understood how we got S4, now look at G3, at its 3rd index, it says that feature forecast should have value 'same'. But in S4, we got a hypothesis that says that feature forecast can have any value '?'. Thus, for G4 we will remove that specification to compulsory have that feature forecast value as 'same'. I hope you understood. If still not, then please comment down. We are happy to help !!

    • @swetharanik1822
      @swetharanik1822 5 лет назад +2

      +Code Wrestling
      I understood G3 and S4 but in the last part of the video...how did u get version space between G3 and S4

    • @CodeWrestling
      @CodeWrestling  5 лет назад +1

      Okay. Sorry we didn't cover that part. Please go through this document, page no. 12.
      www.ccs.neu.edu/home/rjw/csg220/lectures/version-spaces.pdf
      Here, they have taken only two attributes and explained. For the example in video, we have to make a 5D structure that can explain, how did we get that version space.
      If you still didn't understand, then we will create another video on it to explain.

    • @vibhad4959
      @vibhad4959 5 лет назад

      @@CodeWrestling yes please do

    • @CodeWrestling
      @CodeWrestling  5 лет назад

      @@vibhad4959 Sure we will make it asap

  • @ganeshpalla7200
    @ganeshpalla7200 5 лет назад +2

    great explanation bro :-)

  • @swatipradhan8722
    @swatipradhan8722 5 лет назад +3

    I didn't get that how you calculated that version space..i need that part only

  • @blackhood3961
    @blackhood3961 4 года назад +1

    bhai bhai

  • @Randoms147
    @Randoms147 5 лет назад +1

    wow nice explanation tnks bro we have ml exam on april1

  • @meghanabhushan5875
    @meghanabhushan5875 5 лет назад

    I didn't get that version space between those two hypothesis .....

    • @arunprasad8606
      @arunprasad8606 5 лет назад +2

      There are three values in the most specific hyp, and 1 value each in most generalised hpy, hence we now consider two values as intermediary, and hence take all the permutations possible of the three attributes in the most specific hpy

    • @gayathrishankar9465
      @gayathrishankar9465 4 года назад

      @@arunprasad8606 Thanks a lot bro even i was confused with it.

  • @johnsubhash
    @johnsubhash 3 года назад

    How to get Version Space ?? And the diagram 😢

  • @Akshay2436
    @Akshay2436 3 года назад +1

    mere ko samaj aaa gaya but aap bohot portion explain kiye bina chodke aage bud rahe ho. PLEASE try to explain all portion in ur explanation. For example question mark ka position generalization me nahi bata rahe ho. Still Clear hogaya. THANKS!!!

  • @shreejatiwari4485
    @shreejatiwari4485 5 лет назад +1

    Can you explain for the negative instance first !

  • @hannanbaig7888
    @hannanbaig7888 5 лет назад +2

    Plz explain for the negative instance first !

  • @sukumarreddy6979
    @sukumarreddy6979 3 года назад

    @LivoGraphyInDe

  • @abhishekr700
    @abhishekr700 5 лет назад

    You have not taken the case where the General Hypothesis you are gonna make is already present

    • @CodeWrestling
      @CodeWrestling  5 лет назад +1

      I will look into it and will get back to you soon! #codewrestling

  • @vinayak_badiger
    @vinayak_badiger 4 года назад

    U removed the same,,,but the warm also became ? Then y don't u remove the warm content,, general hypothesis should be only sunny?????

  • @naveenkrishna7742
    @naveenkrishna7742 3 года назад

    Na you got wrong at example 3

  • @jithendra16
    @jithendra16 5 лет назад

    Can I get the python code for this?

    • @tokyo-boy
      @tokyo-boy 5 лет назад

      import numpy as np
      import csv
      def candidateElimination():
      data = []
      csvFile = open('Data2.csv', 'r')
      reader = csv.reader(csvFile, delimiter = ',')
      for row in reader:
      data.append(np.array(row))
      # Convert To Numpy Array
      data = np.asarray(data, dtype = 'object')
      X = data[:, :-1]
      Y = data[:, -1].reshape(X.shape[0], 1)
      print ("
      Training Data :")
      print (X)
      print ("
      Labels :")
      print (Y)
      print("
      Shape Of X :")
      print (X.shape)
      print ("
      Shape Of Y :")
      print (Y.shape)
      specificH = [" % " for _ in range(X.shape[1])]
      specificH = np.asarray(specificH, dtype = 'object')
      generalH = [[" ? " for _ in range(X.shape[1])] for _ in range(X.shape[1])]
      generalH = np.asarray(generalH, dtype = 'object')
      print ("
      Initial Hypothesis :")
      print (specificH)
      print ("
      Initial General Hypothesis :")
      print (generalH)
      # Set First Positive Example To Hypothesis
      if Y[0] == "P":
      specificH = X[0]
      else:
      for i in range(Y.shape[0]):
      if Y[i] == "P":
      specificH = X[i]
      break

      print ("
      Candidate Elimination : ")
      # For Each Training Example
      for i in range(X.shape[0]):
      # Positive Example
      if Y[i] == "P":
      for j in range(X.shape[1]):
      if X[i][j] != specificH[j]:
      specificH[j] = '?'
      if specificH[j] != generalH[j][j] and generalH[j][j] != "?":
      generalH[j][j] = "?"
      print ("
      ---------Step " + str(i + 1) + "---------
      ")
      print ("
      Specific Set : ")
      print (specificH)
      print ("
      General Set : ")
      print (generalH)
      print ("
      ------------------------
      ")
      # Negative Example
      else:
      for j in range(X.shape[1]):
      if X[i][j] != specificH[j]:
      generalH[j][j] = specificH[j]
      print ("
      ---------Step " + str(i + 1) + "---------
      ")
      print ("
      Specific Set : ")
      print (specificH)
      print ("
      General Set : ")
      print (generalH)
      print ("
      ------------------------
      ")
      print ("
      Final Specific Hypothesis : ")
      print (specificH)
      print ("
      Final General Hypothesis : ")
      print (generalH)
      print ("
      ")
      candidateElimination()

    • @CodeWrestling
      @CodeWrestling  5 лет назад

      yeah sure and do you want the explanation for that too?

    • @harshaas5700
      @harshaas5700 5 лет назад

      import numpy as np
      import pandas as pd
      data = pd.DataFrame(data=pd.read_csv('data2.csv'))
      concepts = np.array(data.iloc[:,0:-1])
      print(concepts)
      target = np.array(data.iloc[:,-1])
      print(target)
      def learn(concepts, target):
      specific_h = concepts[0].copy()
      general_h = [["?" for i in range(len(specific_h))] for i in range(len(specific_h))]
      for i, h in enumerate(concepts):
      if target[i] == "Yes":
      for x in range(len(specific_h)):
      if h[x] != specific_h[x]:
      specific_h[x] = '?'
      general_h[x][x] = '?'
      if target[i] == "No":
      for x in range(len(specific_h)):
      if h[x] != specific_h[x]:
      general_h[x][x] = specific_h[x]
      else:
      general_h[x][x] = '?'
      indices = [i for i,val in enumerate(general_h) if val == ['?', '?', '?', '?', '?', '?']]
      for i in indices:
      general_h.remove(['?', '?', '?', '?', '?', '?'])
      return specific_h, general_h
      s_final, g_final = learn(concepts, target)
      print("

      Final S:", s_final)
      print("

      Final G:", g_final)

    • @gayathrishankar9465
      @gayathrishankar9465 4 года назад

      @@CodeWrestling yes sir plz explain the code

  • @edmundchan8923
    @edmundchan8923 4 года назад

    not quite understand...

  • @hanisntsolo
    @hanisntsolo 4 года назад

    Bhai what is hypothesis ?? 😅

  • @akshayb2080
    @akshayb2080 2 года назад +1

    Not at all clear

  • @varunkulshrestha647
    @varunkulshrestha647 3 года назад

    whatsapp sounds really makes me feel swirl

  • @ehraazqureshi1285
    @ehraazqureshi1285 4 года назад

    kya sikhate b?

  • @ansadahmad1958
    @ansadahmad1958 3 года назад

    Did not understand how to frame set of hypotheses from general and specific hypotheses!! So m gonna dislike for wasting my time

  • @vinayak_badiger
    @vinayak_badiger 4 года назад

    U removed the same,,,but the warm also became ? Then y don't u remove the warm content,, general hypothesis should be only sunny?????