Code Monkey home page Code Monkey logo

Comments (11)

oubahe avatar oubahe commented on September 27, 2024

from gsa-pso-svr.

narutomst avatar narutomst commented on September 27, 2024

这个数据集dataset没有格式,能用notepad++打开,能正常查看数据,但是dataset没有文件扩展名,不知道怎么读取。每次到读取文件这里就报错了

---> 15 data = pd.read_excel('modeling_data.xlsx',sheetname='Area1_Load')
16 features=pd.read_excel('modeling_data.xlsx',sheetname='Area1_Weather')
17 ## features前向填充缺失值
FileNotFoundError: [Errno 2] No such file or directory: 'modeling_data.xlsx'

from gsa-pso-svr.

oubahe avatar oubahe commented on September 27, 2024

from gsa-pso-svr.

narutomst avatar narutomst commented on September 27, 2024

你好,请问在不修改(或者尽量少修改)程序代码的情况下,该如何转换数据的格式?我是初学者,有些地方不懂。

from gsa-pso-svr.

oubahe avatar oubahe commented on September 27, 2024

from gsa-pso-svr.

narutomst avatar narutomst commented on September 27, 2024

################################### 数据读取与预处理 ###############################################
data = pd.read_excel('modeling_data.xlsx',sheetname='Area1_Load')
features=pd.read_excel('modeling_data.xlsx',sheetname='Area1_Weather')
你好,我把dataset中的6列数据已经复制到modeling_data.xlsx中了。从上面两条语句看,数据应该是要放在两个sheet中吧?那么每个sheet中分别放哪几列数据?另外,每一列数据的名称是什么?肯定不是现在的汉字吧?

from gsa-pso-svr.

narutomst avatar narutomst commented on September 27, 2024

时间 最高温度℃ 最低温度℃ 平均温度℃ 相对湿度(平均) 降雨量(mm)
20120101 19.5 12.1 15.8 63 0
20120102 20 13 16 59 0
20120103 18.7 14.2 15.8 72 0
20120104 14.9 9.3 10.9 62 0

你上传的dataset内容是这样子的,你确定没有弄错吗?这个怎么来预测电力负荷?

from gsa-pso-svr.

oubahe avatar oubahe commented on September 27, 2024

from gsa-pso-svr.

narutomst avatar narutomst commented on September 27, 2024

先得把程序跑通了,才可能有后面自己的修改,你的数据集和程序是匹配的吗?你可以把你能跑通的程序和数据集一起上传。这样别人才有可能跑通,才有后面的相互交流学习。否则,你上传的数据集和程序不匹配,后面的人是没办法学习的,更何谈相互交流呢?

from gsa-pso-svr.

oubahe avatar oubahe commented on September 27, 2024

from gsa-pso-svr.

narutomst avatar narutomst commented on September 27, 2024

我不是说要你处理后的数据集,你说过数据集是公开的,那你就给出个链接吧

from gsa-pso-svr.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.