协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
training-and-persistence【开发与工程】Train, evaluate, predict, save, restore, and debug TFLearn models with DNN, Trainer, TrainOp, Evaluator, callbacks, validation, TensorBoard, checkpoints, weights, and variable-scope restore mapping.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about running a TFLearn model after the network graph has been built: fitting arrays or feed dictionaries, evaluating metrics, predicting outputs, checkpointing, restoring into compatible or renamed scopes, inspecting layer weights, or diagnosing failed training/persistence.
tflearn.DNN.fit, predict, evaluate, save, load, get_weights, or
set_weights workflows.tflearn.TrainOp,
tflearn.Trainer, and tflearn.Evaluator.snapshot_epoch, snapshot_step, checkpoint_path,
best_checkpoint_path, max_checkpoints, run_id, and TensorBoard log
directories.input_data or regression, empty
train-op collections, graph/session reuse bugs, and scope-renamed restores
with scope_for_restore or variable_name_map.with tf.Graph().as_default(): ... or tf.reset_default_graph() before a
rebuild.tflearn.input_data(...) layer and one
tflearn.regression(...) estimator before constructing tflearn.DNN(...).model.fit({'input': X}, {'target': Y}, ...). Lists are matched by input and
target creation order.tensorboard_dir, checkpoint_path, manual save stems, and smoke-test
--model-dir under an explicit experiment/temp directory, not an implicit
current working directory.Run the bundled no-network smoke from this sub-skill directory:
python scripts/tiny_dnn_regression_smoke.py --help
python scripts/tiny_dnn_regression_smoke.py --epochs 5
python scripts/tiny_dnn_regression_smoke.py --epochs 5 --model-dir /tmp/tflearn-smoke
Expected smoke output includes a prediction shape and either a checkpoint stem
or <not saved> when --no-save is used.
DNN, Trainer, TrainOp, Evaluator, and weights APIs.Trainer, and callback patterns.weights_only, layer variables, and scope
mapping.Before telling a user a training or restore workflow is ready, check:
tf.GraphKeys.INPUTS, TARGETS, and TRAIN_OPS are populated
as expected.validation_set/val_feed_dicts match the same feed form as
training data; validation_batch_size is set when validation memory differs.scope_for_restore/variable_name_map is supplied.save/load when the task depends on restored weights.