python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to do PCA on multiple images by flattening the tensors?
I have an array of tensors for a single image. I want to flatten the vectors and perform PCA on the same.
The below is the code to extract the tensors on a single image :
bottle_neck_model_tensors = b...
budding_star
Votes: 0
Answers: 0
Thrust is very slow for array reduction
I am trying to use thrust to reduce an array of 1M elements to a single value. My code is as follows:
#include<chrono>
#include<iostream>
#include<thrust/host_vector.h>
#include<...
thePhantom
Votes: 0
Answers: 1
How to select the best splitting criteria in decision trees with multiple best splits?
I wrote a decision tree regressor from scratch in python. It is outperformed by the sklearn algorithm. Both trees build exactly the same splits with the same leaf nodes. BUT when looking for the best ...
Gianluca Armeli
Votes: 0
Answers: 0
Speeding up triple loop
Initially I had the loop
import numpy
datos = numpy.random.rand(1000,17)
clusters = 250
n_variables = 17
centros = numpy.random.rand(clusters,n_variables)
desviaciones = numpy.random.rand(n_variables...
Jesus M.
Votes: 0
Answers: 1