mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-20 22:38:10 +00:00
fix(Labeling): use X.loc instead of X.filter, remove Nan from event_start_times
This commit is contained in:
@@ -18,7 +18,7 @@ class FixedTimeHorionThreeClassBalancedEventLabeller(EventLabeller):
|
||||
|
||||
forward_returns = create_forward_returns(returns, self.time_horizon)
|
||||
cutoff_point = returns.index[-self.time_horizon]
|
||||
event_start_times[event_start_times < cutoff_point]
|
||||
event_start_times = event_start_times[event_start_times < cutoff_point]
|
||||
event_candidates = forward_returns[event_start_times]
|
||||
|
||||
def get_bins_threeway(x):
|
||||
|
||||
Reference in New Issue
Block a user