c442e87d0b6a88e9787e8e82eb493e0dcf669c4d,doc/source/notebooks/intro_to_gpflow2.pct.py,,,#,266

Before Change


// Save the variable `a` and change its value right after:

// %%
manager.save()
_ = a.assign(0.33)

// %% [markdown]
// Now we can restore the old variable value:

After Change


print_task = ExecuteCallback(callback=print_cb)

// We group these tasks and specify a period of `100` steps for them
fast_tasks = MonitorTaskGroup([model_task, elbo_task, print_task], period=100)

// We also want to see the model"s fit during the optimisation
image_task = ImageToTensorBoard(output_logdir, plot_model, "samples_image")

// We typically don"t want to plot too frequently during optimisation,
// which is why we specify a larger period for this task.
slow_taks = MonitorTaskGroup(image_task, period=500)
monitor = Monitor(fast_tasks, slow_taks)


def monitored_training_loop(epochs: int):
    tf_optimization_step = tf.function(optimization_step)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GPflow/GPflow
Commit Name: c442e87d0b6a88e9787e8e82eb493e0dcf669c4d
Time: 2020-03-26
Author: dutordoirv@gmail.com
File Name: doc/source/notebooks/intro_to_gpflow2.pct.py
Class Name:
Method Name:


Project Name: tensorlayer/tensorlayer
Commit Name: 5307ae3f7d1c4b6bd2285f946db82d944f3844db
Time: 2019-02-19
Author: jingqing.zhang15@imperial.ac.uk
File Name: examples/text_classification/tutorial_imdb_fasttext.py
Class Name:
Method Name: train_test_and_save_model


Project Name: keras-team/keras
Commit Name: e074a049205829feb52c7d90f2011519327e56f3
Time: 2015-04-19
Author: francois.chollet@gmail.com
File Name: examples/reuters_mlp.py
Class Name:
Method Name: