08 2020 档案
摘要:```python import numpy as np def focalloss(p, y, gamma=5): # https://blog.csdn.net/JNingWei/article/details/80038594 # https://www.cnblogs.com/king-lp
阅读全文
摘要:在 tf115 版本下, 通过ipython测试tf语法, 使用tab键提示会出现很多 warning, 干扰使用. 没有好办法, 如下解决: tf.logging.set_verbosity(tf.logging.ERROR) 更好的办法 from tensorflow.python.util i
阅读全文
摘要:* 切片函数 * tf.gather * tf.boolean_mask
阅读全文
摘要:(tf115) [xxxxx@macpro pai_tf_model] $ ~/.local/bin/jupyter-console import tensorflow as tf A = tf.SparseTensor(indices=[[0, 0], [1, 2]], values=[1, 2]
阅读全文
摘要:``` pip install ortools --user cd /root/.local/lib/python3.6/ zip -r ortools.zip site-packages ```
阅读全文