예제 #1
0
 def plot(self, title=""):
     """For plotting"""
     _scatter_plot(self.data['ref_spd'].values.flatten(),
                   self.data['target_spd'].values.flatten(),
                   self._predict(self.data['ref_spd']).values.flatten(),
                   title=title,
                   prediction_marker='k.')
예제 #2
0
    def plot_wind_vane(self):
        """
        Plots reference and target directions in a scatter plot
        """

        # _scatter_plot(self.ref_dir, self.target_dir,title='original data')
        _scatter_plot(
            self.data['ref_dir'][(self.data['ref_spd'] > self.cutoff) & (self.data['target_spd'] > self.cutoff)],
            self.data['target_dir'][(self.data['ref_spd'] > self.cutoff) & (self.data['target_spd'] > self.cutoff)],
            x_label='Reference direction', y_label="Target direction")
예제 #3
0
 def plot(self, title=""):
     """For plotting"""
     return _scatter_plot(self.data['ref_spd'].values.flatten(),
                          self.data['target_spd'].values.flatten(),
                          self._predict(
                              self.data['ref_spd']).values.flatten(),
                          title=title)
예제 #4
0
 def plot_model(self, title):
     _scatter_plot(
         sorted(self.sector_ref.values.flatten()),
         sorted(self.sector_target.values.flatten()),
         sorted(self.sector_predict(self.sector_ref).values.flatten()))