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.')
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")
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)
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()))