py tag

191 questions


1 answers
88 views
0
ValueError on Python: I don't know what to do with Length mismatch.

The code below suddenly displays ValueError: Length mismatch, and I don't know how to deal with it.I thought it was because I got the same securities code over and over again, but it was working fine ...


1 answers
142 views
0
Input and target (teacher) sequences do not match on keras CNN

I'm thinking of classifying two classes at keras on CNN.Here's the code.import randomimport pandas aspdfrom pandas import Series, DataFrameimport numpy as npimport matplotlib.pyplot aspltimport kerasf...


3 answers
105 views
0
I want to read the csv file with numpy and create a dictionary using a tuple (which contains data from the csv file).

[Introduction] I am trying to create a dictionary using tuple in python, but an error occurred and I cannot create it.I'm sorry, but I'd appreciate it if you could tell me how to correct the error.Tha...

2 years ago

1 answers
104 views
0
image data set resize

I'd like to resize the numpy image data set.Specifically, I would like to resize the image data set with the shape of the numpy array (2000, 512, 512, 3) to the numpy array (2000, 256, 256, 3). ( 5512...


1 answers
63 views
0
Understanding Pythorch Output

The program below identifies the handwritten numeric dataset MNIST into 10 classes.The number of correct answers and the identification rate are determined by the validate function, and we used a conf...


1 answers
63 views
0
How to create a (5,5,4) array from an array of shapes (5,5) in a python numpy array

There is an array X in python (5,5) similar to the following (the number is appropriate): array([59,65,57,57,62], [96, 81, 83, 83, 96], [53, 29, 30, 30, 53], [26, 0, 0, 0, 27], [20, 1, 5, 0, 19] ,...

2 years ago

1 answers
66 views
0
I want to fix 'int' object is not callable.

I put np.ndarray type data in a for statement and created a neural net, but it doesn't work. Please let me know. Below is the error statement and the corresponding part.Error Statements 2020-11-11 14:...

2 years ago

1 answers
46 views
0
Array array columns cannot be unified

The following data columns cannot be unified.Why?The following df3 dataarray([-1, 0, 1, 2, 1, 3, 4, 5, 6, 3, 3, 7, 8, 9]),list([-1, 10, 11, 10, 12, 13, 14, 15, 13, 16, 17, 13, 13, 13, 13, 13, 13, 13, ...

2 years ago

1 answers
83 views
0
I can't install Lxml on my Mac

Scrapy I need Lxml before installing, but I keep getting errors I checked that libxml2 and libxslt are also brew installed, and both are good.What should I do?In file included from src/lxml/lxml.etree...

2 years ago

2 answers
168 views
0
I want to import hidden elements during crawling in Node.js.

var http = require('http');var fs = require('fs');var request = require('request');var cheerio = require('cheerio');var iconv = require('iconv-lite');iconv.skipDecodeWarning = true; //Warning output o...

2 years ago
« - 12 - »

© 2024 OneMinuteCode. All rights reserved.