google-deepmind/learning-to-learn
google-deepmind/learning-to-learn has 4,073 GitHub stars and 601 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-08 14:43 UTC. Last push 2021-06-29.
TensorFlowで学習の仕方を学ぶ
計測したスター増加
- 24時間
- 0
- 7日間
- +1
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルLearning to Learn in TensorFlow
Dependencies
Training
python train.py --problem=mnist --save_path=./mnist
Command-line flags:
save_path: If present, the optimizer will be saved to the specified path every time the evaluation performance is improved.num_epochs: Number of training epochs.log_period: Epochs before mean performance and time is reported.evaluation_period: Epochs before the optimizer is evaluated.evaluation_epochs: Number of evaluation epochs.problem: Problem to train on. See Problems section below.num_steps: Number of optimization steps.unroll_length: Number of unroll steps for the optimizer.learning_rate: Learning rate.second_derivatives: Iftrue, the optimizer will try to compute second derivatives through the loss function specified by the problem.
Evaluation
python evaluate.py --problem=mnist --optimizer=L2L --path=./mnist
Command-line flags:
optimizer:AdamorL2L.path: Path to saved optimizer, only relevant if using theL2Loptimizer.learning_rate: Learning rate, only relevant if usingAdamoptimizer.num_epochs: Number of evaluation epochs.seed: Seed for random number generation.problem: Problem to evaluate on. See Problems section below.num_steps: Number of optimization steps.
Problems
The training and evaluation scripts support the following problems (see
util.py for more details):
simple: One-variable quadratic function.simple-multi: Two-variable quadratic function, where one of the variables is optimized using a learned optimizer and the other one using Adam.quadratic: Batched ten-variable quadratic function.mnist: Mnist classification using a two-layer fully connected network.cifar: Cifar10 classification using a convolutional neural network.cifar-multi: Cifar10 classification using a convolutional neural network, where two independent learned optimizers are used. One to optimize parameters from convolutional layers and the other one for parameters from fully connected layers.
New problems can be implemented very easily. You can see in train.py that
the meta_minimize method from the MetaOptimizer class is given a function
that returns the TensorFlow operation that generates the loss function we want
to minimize (see problems.py for an example).
It's important that all operations with Python side effects (e.g. queue
creation) must be done outside of the function passed to meta_minimize. The
cifar10 function in problems.py is a good example of a loss function that
uses TensorFlow queues.
Disclaimer: This is not an official Google product.
関連プロジェクトを探す
tensorflow/tensorflow
すべての人のためのオープンソース機械学習フレームワーク
201,388 スターhuggingface/transformers
🤗 Transformers:テキスト、ビジョン、音声、マルチモーダルの最先端機械学習モデル向けモデル定義フレームワークで、推論と学習の両方に対応します。
168,636 スターAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion の Web UI
165,251 スターComfy-Org/ComfyUI
グラフとノードによるインターフェースを備えた、最も強力でモジュール性の高い拡散モデル向け GUI、API、バックエンド。世界最速のローカル推論エンジン。
145,629 スター