Page 345 - Artificial Intellegence_v2.0_Class_11
P. 345

Number of books























                                    Text Books  Fiction  Autobiographies  Self-help books  Periodicals, journals


                 12.  Consider the following confusion matrix and answer the questions (i) – (ii):

                                                                               REALITY
                                            CONFUSION MATRIX
                                                                          TRUE        FALSE
                                                             TRUE           86          12
                                            PREDICTION
                                                             FALSE          10          79

                     i)   Calculate F1 Score.

                     ii)  How many in total were predicted ‘yes’ and ‘no’?
                 Ans.  i)   Recall, Precision and F1 Score are calculated as follows:


                         Precision =   TP   × 100% = 86/(86+12) = 87.75%
                                    TP + FP

                         Recall =   TP    = 86/(86+10) = 0.89
                                 TP + FN

                         F1 Score = 2 ×   Precision × Recall   = 2 ×   0.87 × 0.89   = 0.88
                                        Precision+Recall       0.87 + 0.89
                     ii)  No. of Predictions “YES” – 96
                         No. of Predictions “NO” – 91


                 13.   Calculate the Variance and Standard Deviation of the values 2, 7, 14, 4, 16, 18, 23, 27, 29, 35.
                 Ans.  Variance = 110.65    Standard Deviation : 10.51

                 14.   See Computer Vision at work! Go to website https://developer.opencv.fr/ui/#/onboard/demo

                     Check out their face comparison and face detection feature.
                 15.    Ask AI to generate an image for you. Go to website https://app.runwayml.com/ Create a free login
                     and check out their Text to Image feature. Generate wacky images like cat on a bicycle, Earth seen

                     from moon etc. Enjoy!


                                                                                          Practical Questions   343
   340   341   342   343   344   345   346   347   348   349   350