Questions tagged as 'numpy'

1
answer

Fourier transform problem

I'm having a problem using numpy's fft function. When rotating it, the answer is giving different from the Fourier transform that I implemented manually and by the tests I did the manual seems correct. I think I'm using fft the wrong way. impo...
asked by 23.06.2018 / 04:33
1
answer

Python - invalid literal for float ()

I have an array that looks like this training_set = [['03/11/2017' '16,94'] ['01/11/2017' '16,90'] ['31/10/2017' '16,77'] ... However, I can not manipulate the numbers because they are in the form of string . How do I clean the data and...
asked by 07.11.2017 / 02:17
2
answers

How to install Numpy via PIP windows 7 64 bit [closed]

Good afternoon how do I install Numpy via pip. I downloaded Python 2.7.13 and I do not know how to install via pip.     
asked by 02.06.2017 / 17:46
1
answer

Scalar product

Objective: To make a neuron using the load of weights and inputs from an xlsx The scalar product was calculated in several ways as an exercise, but when I try to use the dot it gives an error. the input: Home page -1,00 7,00 5.00 t...
asked by 22.09.2018 / 07:01
0
answers

Implement a blink counter on haar cascade face detection

How do I display the amount of blinks of people currently detected. The code below detects against haar cascade, where it displays a face counter. from __future__ import print_function #importa a funcao da biblioteca future import cv2 cap =...
asked by 04.06.2018 / 19:35
4
answers

Remove rows from numpy array

For example I have array arr1 and I want to take a row range of this array as below, what function can I use? arr1: array([[ 1, 1, 1], [ 2, 2, 2], [ 3, 3, 3], [ 4, 4, 4], [ 5, 5, 5], [ 6, 6, 6],...
asked by 18.10.2018 / 22:19
1
answer

Concatenate arrays using numpy module

For the solution of linear systems: how to concatenate an array A, an array (vector column) b, so that we have the "augmented" matrix of the system, A ~ = [A b] , using numpy?     
asked by 30.11.2016 / 02:38
2
answers

Python Numpy library

How to install a library in python using Windows 7. I try to download Numpy and it appears at the prompt: libraries f77blas,cblas,atlas not found in C:\Python33\lib libraries lapack_atlas not found in C:\Python33\lib . . . Atlas libraries not...
asked by 01.02.2014 / 03:57
1
answer

module 'cv2.cv2' has no attribute 'COLOR_BRG2GRAY'

I am resizing images from a folder and am encountering the following error: module 'cv2.cv2' has no attribute 'COLOR_BRG2GRAY' Code: pathC = './cityscape/' dirs = os.listdir(pathC) #Resize para o pathC np.array def resize(): path = pathC...
asked by 19.12.2018 / 12:13
1
answer

Receiving Nan (not a number) while reading a .CSV file with numpy

Using python 3.6.5 import numpy as np valores = np.genfromtxt("arquivo.csv",delimiter = ";",skip_header = 1) print(valores) .csv file: Valores1,Valores2,Valores3 10,20,30 40,50,60 70,80,90 34,54,23 Output: array([nan, nan, nan, nan]...
asked by 30.04.2018 / 01:20