-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For Kinetics: Use list/arrays/vectors to extend to arbitrarily complex responses #3
Comments
Implementing arbitrary complexity is going to require us to make a reactants and products array Eric, I have another question. For this line: If I understand correctly, if we want to generalize to having several response variables (like concentration 1, concentration 2, etc.) , we can just generalize it as follows: If so, we can make a probability_metric_array and then…. Do you think I understand correctly? Or is it going to be more hard than this to generalize to multiple response variables? Ashi |
Merge Master for sobol/astroidal.
currently, tprequation inside https://github.com/AdityaSavara/ODE-KIN-BAYES-SG-EW/blob/master/tprmodel.py looks like this:
def tprequation(tpr_theta, t, Ea1_mean, Ea2_mean, log_A1_mean, log_A2_mean, gamma_1_mean, gamma_2_mean,dT,dt,start_T):
This equation either needs to be generated by a function writing to a file or needs to have some kind of lists / list expansion.
Can it become like this?
def tprequation(tpr_theta, t, tpr_Ea_mean_list, log_A1_mean_list, gamma_1_mean_list, gamma_2_mean_list,dT,dt,start_T):
Maybe we need to also add in variable that is the number of species (a constant, like start_T is a constant).
We also need to figure out a way compatible with generalizing the below equations:
tpr_theta = odeint(tprequation, [0.5, 0.5], times, args = (post_mean[0], post_mean[1], post_mean[2], post_mean[3], post_mean[4], post_mean[5],dT,dt,start_T)) # [0.5, 0.5] are the initial theta's.
rate = tprequation(tpr_theta, times, post_mean[0], post_mean[1], post_mean[2], post_mean[3], post_mean[4], post_mean[5], dT,dt,start_T)
rate_tot = -np.sum(rate, axis=0)
tpr_theta = odeint(tprequation, [0.5, 0.5], self.times, args = (sample[0], sample[1], sample[2], sample[3], sample[4], sample[5],self.dT,self.dt,self.start_T)) # [0.5, 0.5] are the initial theta's.
rate = tprequation(tpr_theta, self.times, sample[0], sample[1], sample[2], sample[3], sample[4],
sample[5], self.dT,self.dt,self.start_T)
rate_tot = -np.sum(rate, axis=0)
The text was updated successfully, but these errors were encountered: