上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 29 下一页
摘要: #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 阅读(21) 评论(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 阅读(16) 评论(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 阅读(9) 评论(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 阅读(12) 评论(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 阅读(10) 评论(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 阅读(22) 评论(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 阅读(25) 评论(0) 推荐(0)
摘要: 通CCR与BCC、SBM已经发布资源,超效率SBM代码已经修复(网上的带bug) 通过链接启发:https://tieba.baidu.com/p/5986755578 https://download.csdn.net/download/qq_42830971/20586629 import gu 阅读全文
posted @ 2021-07-30 09:42 kuanleung 阅读(83) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-27 20:43 kuanleung 阅读(21) 评论(0) 推荐(0)
摘要: dir = os.listdir('C:\\Users\Admin\Documents\\vscode\PDF\\中国渔业统计年鉴') for i in dir: pdir=os.listdir('C:\\Users\Admin\Documents\\vscode\PDF\\中国渔业统计年鉴\\{0 阅读全文
posted @ 2021-07-24 20:34 kuanleung 阅读(22) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 29 下一页