import synapseclient
#login to synapse
syn = synapseclient.login() #if you are logging for the first time you need to specify the username and password
Welcome, Abhishek Pratap!
#get the current synapse entity and then add the entities that were used to produce it
ada_training_data = syn.get('syn2754093', downloadFile=False)
#adding the things used and executed to produce this
ada_training_data = syn.store(ada_training_data,
used = ['syn2343245', 'syn2343207'],
executed = ['syn2775464'])
#get the current synapse entity and then add the entities that were used to produce it
etan_training_data = syn.get('syn2754073', downloadFile=False)
#adding the things used and executed to produce this
etan_training_data = syn.store(etan_training_data,
used = ['syn2343245', 'syn2343207'],
executed = ['syn2775464'])
#get the current synapse entity and then add the entities that were used to produce it
inflix_training_data = syn.get('syn2754077', downloadFile=False)
#adding the things used and executed to produce this
inflix_training_data = syn.store(inflix_training_data,
used = ['syn2343245', 'syn2343207'],
executed = ['syn2775464'])
#get the final prediction
final_prediction = syn.get('syn2484813', downloadFile=False)
final_prediction = syn.store(final_prediction,
used = [inflix_training_data, ada_training_data, etan_training_data],
executed = ['syn2754070', 'syn2754071', 'syn2754072'])