08 2021 档案

摘要:import tensorflow as tf @tf.function #启用图必须开启 def my_func(x, y): # A simple hand-rolled layer. return tf.multiply(x, y) # Set up logging. logdir = r"C 阅读全文
posted @ 2021-08-31 22:40 kuanleung 阅读(7) 评论(0) 推荐(0) 编辑
摘要:https://www.bilibili.com/video/BV1Lx411j7ws?p=9点击进入 阅读全文
posted @ 2021-08-28 21:12 kuanleung 阅读(2) 评论(0) 推荐(0) 编辑
摘要:Dependencies: tensorflow: 1.1.0 matplotlib numpy """ import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import numpy a 阅读全文
posted @ 2021-08-27 16:05 kuanleung 阅读(3) 评论(0) 推荐(0) 编辑
摘要:ncies: tensorflow: 1.1.0 matplotlib numpy """ import tensorflow as tf import numpy as np import matplotlib.pyplot as plt tf.set_random_seed(1) np.rand 阅读全文
posted @ 2021-08-27 16:05 kuanleung 阅读(5) 评论(0) 推荐(0) 编辑
摘要:""" Know more, visit my Python tutorial page: https://morvanzhou.github.io/tutorials/ My Youtube Channel: https://www.youtube.com/user/MorvanZhou More 阅读全文
posted @ 2021-08-26 18:55 kuanleung 阅读(8) 评论(0) 推荐(0) 编辑
摘要:Dependencies: tensorflow: 1.1.0 numpy """ import tensorflow as tf import numpy as np tf.set_random_seed(1) np.random.seed(1) # fake data x = np.linspa 阅读全文
posted @ 2021-08-26 18:53 kuanleung 阅读(8) 评论(0) 推荐(0) 编辑
摘要:Dependencies: tensorflow: 1.1.0 matplotlib numpy """ import tensorflow as tf import matplotlib.pyplot as plt import numpy as np tf.set_random_seed(1) 阅读全文
posted @ 2021-08-26 18:51 kuanleung 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Dependencies: tensorflow: 1.1.0 matplotlib numpy """ import tensorflow as tf import matplotlib.pyplot as plt import numpy as np tf.set_random_seed(1) 阅读全文
posted @ 2021-08-26 18:50 kuanleung 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Dependencies: tensorflow: 1.1.0 matplotlib numpy """ import tensorflow as tf import matplotlib.pyplot as plt import numpy as np tf.set_random_seed(1) 阅读全文
posted @ 2021-08-26 18:49 kuanleung 阅读(5) 评论(0) 推荐(0) 编辑
摘要:#tensorflow2代码 #设置优化器 x_data = np.random.rand(100).astype(np.float32) b_data = tf.random.normal([1],mean=1,stddev=0.5) print(tf.reduce_mean(b_data)) y 阅读全文
posted @ 2021-08-26 18:48 kuanleung 阅读(5) 评论(0) 推荐(0) 编辑
摘要:Dependencies: tensorflow: 1.1.0 matplotlib """ import tensorflow as tf import numpy as np import matplotlib.pyplot as plt # fake data x = np.linspace( 阅读全文
posted @ 2021-08-26 18:47 kuanleung 阅读(8) 评论(0) 推荐(0) 编辑
摘要:Dependencies: tensorflow: 1.1.0 """ import tensorflow as tf var = tf.Variable(0) # our first variable in the "global_variable" set add_operation = tf. 阅读全文
posted @ 2021-08-26 18:46 kuanleung 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Dependencies: tensorflow: 1.1.0 """ import tensorflow as tf x1 = tf.placeholder(dtype=tf.float32, shape=None) y1 = tf.placeholder(dtype=tf.float32, sh 阅读全文
posted @ 2021-08-26 18:44 kuanleung 阅读(6) 评论(0) 推荐(0) 编辑
摘要:session """ Dependencies: tensorflow: 1.1.0 """ import tensorflow as tf m1 = tf.constant([[2, 2]]) m2 = tf.constant([[3], [3]]) dot_operation = tf.mat 阅读全文
posted @ 2021-08-26 18:43 kuanleung 阅读(2) 评论(0) 推荐(0) 编辑
摘要:不能用 import zipfile from tqdm import tqdm import itertools as it def extractFile(zipFile, password): try: zipFile.extractall(pwd= bytes(password, "utf8 阅读全文
posted @ 2021-08-18 21:23 kuanleung 阅读(4) 评论(0) 推荐(0) 编辑
摘要:class SBM_eff(object): def __init__(self,input_var,desir_output_var,undesir_output_var,DMUs,data): self.DMUs = len(data[DMUs]) self.m= len(input_var) 阅读全文
posted @ 2021-08-10 16:22 kuanleung 阅读(16) 评论(0) 推荐(0) 编辑

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