Code Monkey home page Code Monkey logo

zema-machine-learning-tutorials's People

Contributors

bangxiangyong avatar bjoernludwigptb avatar ehlimana avatar harislulic avatar

Stargazers

 avatar

zema-machine-learning-tutorials's Issues

NameError in 2_Features_extraction_and_selection.ipynb

I receive a

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-18-e491d44dd19f> in <module>
      8 for i in range((len(sensor_train))):
      9 
---> 10     sensor_train[i]=((sensor_train[i]*gain[sensor_num])+offset[sensor_num])*b[sensor_num]*k[sensor_num]

NameError: name 'sensor_num' is not defined

on execution of

#if you did not convert the signal to SI units, convert here
offset=[0, 0, 0, 0, 0.00488591, 0.00488591, 0.00488591,  0.00488591, 1.36e-2, 1.5e-2, 1.09e-2]
gain=[5.36e-9, 5.36e-9, 5.36e-9, 5.36e-9, 3.29e-4, 3.29e-4, 3.29e-4, 3.29e-4, 8.76e-5, 8.68e-5, 8.65e-5]
b=[1, 1, 1, 1, 1, 1, 1, 1, 5.299641744, 5.299641744, 5.299641744]
k=[250, 1, 10, 10, 1.25, 1, 30, 0.5, 2, 2, 2]
units=['[Pa]', '[g]', '[g]', '[g]', '[kN]', '[bar]', '[mm/s]', '[A]', '[A]', '[A]', '[A]']

for i in range((len(sensor_train))):

    sensor_train[i]=((sensor_train[i]*gain[sensor_num])+offset[sensor_num])*b[sensor_num]*k[sensor_num]

in 2_Features_extraction_and_selection.ipynb. Could you please have a look at the lines and fix this issue?

Typing errors

0_Data_Import_and_Visualisation.ipynb:

Subtitle: Basic visualisation for imported dataset
1st line: isto real-time - into real time

If you have problems with previous step, you can skip conversion into SI units by runing next cell.- double n is missing in "running"

1_FFT_and_Reconstruction.ipynb

If you have problems with previous step, you can skip conversion into SI units by runing next cell.- double n is missing in "running"

2_Machine_Learning_using_Best_Fourier_Coefficients.ipynb:
Subtitle: Converting into SI Units
If you have problems with previous step, you can skip conversion into SI units by runing next cell.- double n is missing in "running"

Subtitle: Feature extraction using BFC:
"This step an unsupervised extraction method" - "is" is missing

"A function is created, which takes as input:
data from one senzor sensor
," - s insted of z

Subtitle: Pearson correlation
"Example: If element in 'senzor_n' is 5, and the element in 'feature_n' at the same position is 50, that means that you can access that feature in this way:" - s instead of z

Subtitle: Apply patterns for feature extraction and selection on testing data
"Further selection is based on the indices found with Pearason correlation method. " - Pearson instead of Pearason

Subtitle: Mahalanobis distance -
"The Mahalanobis distance is a measure of the distance between two points and unknown character" -What is with the unknown character, check this

3_Machine_Learning_using_Statistical_Moments.ipynb
If you have problems with previous step, you can skip conversion into SI units by runing next cell.- double n is missing in "running"
Subtitle: Pearson correlation
"Example: If element in 'senzor_n' is 5, and the element in 'feature_n' at the same position is 50, that means that you can access that feature in this way:" - s instead of z

Local file sensor_units.csv missing

On execution of 2a_Features_extraction.ipynb I get a

FileNotFoundError: [Errno 2] File C:\Users\jugo01\Desktop\sensor_units.csv does not exist: 'C:\\Users\\jugo01\\Desktop\\sensor_units.csv'`

on execution of

sensor=pd.read_csv(r'C:\Users\jugo01\Desktop\sensor_units.csv')

in 2a_Features_extraction.ipynb. Could you please include some documentation where to obtain this file and ideally replace the absolute, local path. I would really appreciate your support in getting things working!

Conversion factors need to be updated and scaling seems to be wrong

In 0_Data_Import_and_Visualisation.ipynb the out-dated conversion factors are used, that lead to non-SI units, such as "g" for acceleration. The updated table is available on Zenodo and should be used instead.

Also, the scaling seems to be wrongly implemented for the plotting, because the amplitudes of the signals before and after the scaling are identical. For instance, the microphone data in Pa should be around +/- 0.4 instead of +/- 200000.

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.