- Mastering TensorFlow 1.x
- Armando Fandango
- 167字
- 2021-06-25 22:51:00
TFLearn estimator layers
TFLearn offers only one layer in the tflearn.layers.estimator module:

While creating the regression layer, you can specify the optimizer and the loss and metric functions.
TFLearn offers the following optimizer functions as classes in the tflearn.optimizers module:
- SGD
- RMSprop
- Adam
- Momentum
- AdaGrad
- Ftrl
- AdaDelta
- ProximalAdaGrad
- Nesterov
You can create custom optimizers by extending the tflearn.optimizers.Optimizer base class.
TFLearn offers the following metric functions as classes or ops in the tflearn.metrics module:
- Accuracy or accuracy_op
- Top_k or top_k_op
- R2 or r2_op
- WeightedR2 or weighted_r2_op
- binary_accuracy_op
You can create custom metrics by extending the tflearn.metrics.Metric base class.
TFLearn provides the following loss functions, known as objectives, in the tflearn.objectives module:
- softymax_categorical_crossentropy
- categorical_crossentropy
- binary_crossentropy
- weighted_crossentropy
- mean_square
- hinge_loss
- roc_auc_score
- weak_cross_entropy_2d
While specifying the input, hidden, and output layers, you can specify the activation functions to be applied to the output. TFLearn provides the following activation functions in the tflearn.activations module:
- linear
- tanh
- sigmoid
- softmax
- softplus
- softsign
- relu
- relu6
- leaky_relu
- prelu
- elu
- crelu
- selu
- Learning Cocos2d-x Game Development
- ATmega16單片機(jī)項(xiàng)目驅(qū)動(dòng)教程
- Linux KVM虛擬化架構(gòu)實(shí)戰(zhàn)指南
- Effective STL中文版:50條有效使用STL的經(jīng)驗(yàn)(雙色)
- 嵌入式系統(tǒng)設(shè)計(jì)教程
- 電腦維護(hù)365問
- Learning Game Physics with Bullet Physics and OpenGL
- Practical Machine Learning with R
- OpenGL Game Development By Example
- Neural Network Programming with Java(Second Edition)
- 3D Printing Blueprints
- STM32自學(xué)筆記
- FreeSWITCH Cookbook
- 單片機(jī)原理與技能訓(xùn)練
- The Deep Learning with PyTorch Workshop