06 2020 档案

tensorflow2.0 GPU和CPU 时间对比
摘要:import time import tensorflow as tf cpu_slot = 0 gpu_slot = 0 # Using CPU at slot 0 with tf.device('/CPU:' + str(cpu_slot)): # Starting a timer start 阅读全文

posted @ 2020-06-22 10:38 残阳飞雪 阅读(1598) 评论(0) 推荐(0) 编辑

pandas agg 后降低df表层
摘要:# 背景介绍 通常我们不会在Pandas中主动设置多层索引,但是如果一个字段做多个不同的聚合运算, 比如sum, max这样形成的Column Level是有层次的,这样阅读非常方便,但是对编程定位比较麻烦. # 数据准备import pandas as pdimport numpy as npdf 阅读全文

posted @ 2020-06-14 14:20 残阳飞雪 阅读(247) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示