modify pipeline for "update_by_data";
fix bug in speciate. currently, node_delete and conn_delete can successfully work
This commit is contained in:
@@ -49,7 +49,10 @@ class FuncFit(BaseProblem):
|
||||
state, self.inputs, params
|
||||
)
|
||||
inputs, target, predict = jax.device_get([self.inputs, self.targets, predict])
|
||||
loss = self.evaluate(state, randkey, act_func, params)
|
||||
if self.return_data:
|
||||
loss, _ = self.evaluate(state, randkey, act_func, params)
|
||||
else:
|
||||
loss = self.evaluate(state, randkey, act_func, params)
|
||||
loss = -loss
|
||||
|
||||
msg = ""
|
||||
|
||||
Reference in New Issue
Block a user