摘要: import os import pandas as pd # 修改工作路径到指定文件夹 os.chdir("E:\py mathph\JupyterLab-Portable-3.1.0-3.9\shujuwajue") # # 第一种连接方式 # from sqlalchemy import cr 阅读全文
posted @ 2023-04-04 20:15 啊语 阅读(28) 评论(0) 推荐(0)
摘要: import pandas as pd import matplotlib.pyplot as plt inputfile ='C://Users//Administrator//Desktop//data//original_data.xls' #'./demo/data/original_dat 阅读全文
posted @ 2023-03-27 17:22 啊语 阅读(67) 评论(0) 推荐(0)
摘要: import matplotlib.pyplot as plt x = sorted[:10]['Goods'] y = sorted[:10]['id'] plt.figure(figsize=(8,4)) plt.barh(x,y) plt.rcParams['font.sans-serif'] 阅读全文
posted @ 2023-03-19 21:40 啊语 阅读(21) 评论(0) 推荐(0)
摘要: #-*- coding: utf-8 -*- # 代码7-1 # 对数据进行基本的探索 # 返回缺失值个数以及最大最小值 import pandas as pd datafile= 'D://人工智能/air_data.csv' # 航空原始数据,第一行为属性标签 resultfile = 'D:/ 阅读全文
posted @ 2023-03-12 21:15 啊语 阅读(36) 评论(0) 推荐(0)
摘要: import numpy as np import pandas as pd inputfile = 'C://Users//Administrator//Desktop//data.csv' # 输入的数据文件 data = pd.read_csv(inputfile) # 读取数据 # 描述性统 阅读全文
posted @ 2023-03-05 18:51 啊语 阅读(122) 评论(0) 推荐(0)
摘要: import pandas as pd import matplotlib.pyplot as plt import numpy as np ##读取数据 url = r"C:\Users\Administrator\Desktop\catering_fish_congee(1).xls" data 阅读全文
posted @ 2023-02-26 16:34 啊语 阅读(80) 评论(0) 推荐(0)
摘要: import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers, regularizers import numpy as np import os import cv2 import 阅读全文
posted @ 2022-05-16 11:53 啊语 阅读(375) 评论(0) 推荐(0)
摘要: TensoeFlow函数:tf.where 1 tf.where(input, name=None)` 2 Returns locations of true values in a boolean tensor. 3 4 This operation returns the coordinates 阅读全文
posted @ 2022-04-24 21:34 啊语 阅读(41) 评论(0) 推荐(0)
摘要: import pandas as pd import numpy as np import matplotlib.pyplot as plt def sigmoid(x): # 定义网络激活函数 return 1/(1+np.exp(-x)) data_tr = pd.read_csv('C:/Us 阅读全文
posted @ 2022-03-18 20:22 啊语 阅读(109) 评论(0) 推荐(0)
摘要: import wxclass MyFrame(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,title="班级信息收集程序",size=(600,400)) pl = wx.Panel(self) 阅读全文
posted @ 2021-12-11 22:47 啊语 阅读(61) 评论(0) 推荐(0)