Git Product home page Git Product logo

Comments (8)

matiaspereyra777 avatar matiaspereyra777 commented on July 2, 2024 1

Thank you!

Regards.

from spikes.

akshaybabloo avatar akshaybabloo commented on July 2, 2024

Not sure why you have this problem. How are you setting your data? Is it possible to attach one sample here?

from spikes.

matiaspereyra777 avatar matiaspereyra777 commented on July 2, 2024

Thank you for you quick answer!
I am using this example code

from __future__ import print_function
import os

from Spikes import BSA, TBR

data_location = os.path.abspath('Data')

print('BSA Encoder')
spikes_bsa = BSA(data_location)
print(spikes_bsa.get_spikes())

print('TBR Encoder')
spikes_tbr = TBR(data_location)
print(spikes_tbr.get_spikes())

Within the downloaded folder from the repository, using the sample data. I have not changed anything.
I have tried with python 2 and 3, with no success.

What is this 'time_feature_length' ? Does it mean an issue with the data samples?

Regards.

from spikes.

akshaybabloo avatar akshaybabloo commented on July 2, 2024

Thanks for this. Looks like there is a bug in the code when using the newer version of the numpy. I'll update it soon.

from spikes.

matiaspereyra777 avatar matiaspereyra777 commented on July 2, 2024

OK, thank you for your time.

Regards!

from spikes.

acharya-anirudh avatar acharya-anirudh commented on July 2, 2024

Did you solve the bug? Getting the same error here too

from spikes.

akshaybabloo avatar akshaybabloo commented on July 2, 2024

I will fix this in the weekend. Sorry for the delay guys!

from spikes.

akshaybabloo avatar akshaybabloo commented on July 2, 2024

I have updated the code, try the new API

from spikes import encoder
from spikes.utility import ReadCSV

data = ReadCSV('Data').get_samples()['samples']

bsa = encoder.BSA(data)
print(bsa.get_spikes())

tbr = encoder.TBR(data)
print(tbr.get_spikes())

I am also adding better tests. Should be up soon.

from spikes.

Related Issues (8)

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.