Skip to content

Commit

Permalink
Make seasons the environment in ICP bike share experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
cjwallace committed Feb 24, 2020
1 parent af00523 commit 97e0775
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ library(tidyverse)
library(nonlinearICP)
library(InvariantCausalPrediction)

bike_df <- read_csv('../../data/Bike-Sharing-Dataset/day.csv')
bike_df <- read_csv('../../data/Bike-Sharing-Dataset/day.csv') %>% filter(yr = 0)
head(bike_df)

X <- bike_df %>%
Expand All @@ -25,7 +25,7 @@ X <- bike_df %>%

Y <- bike_df$cnt

E <- as.factor(lubridate::year(bike_df$dteday))
E <- as.factor(bike_df$season)

bike_nicp <- nonlinearICP(
X = X,
Expand Down

0 comments on commit 97e0775

Please sign in to comment.