Page 156 - Data Science Algorithms in a Week
P. 156

Regression


            Visualization - comparison of models by R and

            gradient descent algorithm
            For example, weight prediction from height, we visualize the linear prediction models of R
            and of the gradient descent algorithm implemented in Python.


































            Flight time duration prediction from distance


            Given a table of flights with their origin, destination, and flight time, we would like to
            estimate the length of a proposed flight from Bratislava, Slovakia to Amsterdam, the
            Netherlands:

             Origin      Destination Distance in km Flight duration Flight duration in hours
             London      Amsterdam 365                1h 10m          1.167

             London      Budapest     1462            2h 20m          2.333
             London      Bratislava   1285            2h 15m          2.250
             Bratislava  Paris        1096            2h 5m           2.083



                                                    [ 144 ]
   151   152   153   154   155   156   157   158   159   160   161