Coder Social home page Coder Social logo

Comments (1)

qzd-1 avatar qzd-1 commented on June 10, 2024

正在加载数据...很好..从文件数据/oppChallenge_gestures.数据..读取实例:火车(557963,113),测试(118750,113)

直到我调用滑动窗口函数,才会显示错误 传感器数据使用滑动窗口机制进行分段 X_test, y_test = opp_sliding_window(X_test, y_test, SLIDING_WINDOW_LENGTH, SLIDING_WINDOW_STEP_SHORT) X_train, y_train = opp_sliding_window(X_train, y_train, SLIDING_WINDOW_LENGTH, SLIDING_WINDOW_STEP)

类型错误回溯(最近一次调用上一次) 在 () 1 # 传感器数据使用滑动窗口机制进行分段 ----> 2 X_test,y_test = opp_sliding_window(X_test、y_test、SLIDING_WINDOW_LENGTH、SLIDING_WINDOW_STEP_SHORT) 3 X_train,y_train = opp_sliding_window(X_train、y_train、SLIDING_WINDOW_LENGTH、SLIDING_WINDOW_STEP)

1 帧/内容/驱动器/我的驱动器/传感器2020/sliding_window.py sliding_window(a、ws、ss、扁平)中的 93 # 删除大小为 1 的任何维度 94 dim = filter(lambda i : i != 1,dim) ---> 95 返回步幅.reshape(dim)

类型错误:len >= 0 或单个整数的预期序列对象

I had the same problem

from har-stacked-residual-bidir-lstms.

Related Issues (7)

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.