Skip to content

Instantly share code, notes, and snippets.

@philippslang
Last active August 22, 2017 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philippslang/8722b3860b261a64816d40188193822b to your computer and use it in GitHub Desktop.
Save philippslang/8722b3860b261a64816d40188193822b to your computer and use it in GitHub Desktop.
time_stage_change = 15.
num_production_history = 8 # number of productin history points used for prediction
time, production, stage = calc_two_stage_decline(p0, exp_stage_zero, exp_stage_one, time_max,
time_stage_change, num=num_timesteps)
features = np.full((1, num_timesteps, num_features), NA)
features[0, :num_production_history, ifeature_production] = production[:num_production_history]
features[0, :, ifeature_stage] = stage[:]
normalizer_features.transform(features.reshape(num_timesteps, num_features))
targets = model.predict(features)
normalizer_targets.inverse_transform(targets.reshape(num_timesteps, num_targets))
print(targets[0, :, itarget_production])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment