Skip to main content

Questions tagged [scikit-learn]

a Python module for machine learning, built on top of SciPy

Filter by
Sorted by
Tagged with
0 votes
0 answers
77 views

QGIS Plugin - How to import external libraries

I'm developing a plugin for QGIS that uses external libraries such as OSMnx, Shapely, and Scikit-learn. In particular, the last one is an optional dependency of OSMnx. At first I created a lib folder ...
Gianmarco's user avatar
0 votes
1 answer
74 views

Dzetsaka plugin of QGIS can't load SVM

I try to install dzetsaka plugin of QGIS. When in MX Linux 21.3, it is ok when I run SVM in dzetsaka plugin. After I upgrade to MX Linux 23, SVM can't load. There is a message : Scikit-learn library ...
mega saputra's user avatar
1 vote
0 answers
460 views

Computing a weighted Jaccard similarity index for point clouds with scikit-learn

I would like to use the Jaccard Similarity Index to compute the overlap between to point clouds, following Brede et al. 2022. Here, they voxelise a point cloud and then compute the intersection and ...
kungphil's user avatar
  • 373
1 vote
1 answer
908 views

Scikit learn in QGIS does not work (Windows 10)

I tried to install scikit-learn in OSGeo4W Shell. I used the information provided by another question 1. Both ways as AlecZ suggested worked. After installation I get this message: "Successfully ...
Annie S.'s user avatar
  • 197
0 votes
0 answers
616 views

ArcMap: ImportError: No module named sklearn.neighbors

I have tried to create my own Kernel Density Estimation tool in ArcMap, but when importing the sklearn.neighbors module I get the following error: from sklearn.neighbors import KernelDensity ...
Brecht's user avatar
  • 1
3 votes
0 answers
177 views

Is it possible (and how) to mask NoData values using Scikit-learn PCA?

I have to carry out a Principal Component Analysis (sklearn.decomposition.PCA) on a dataset composed of several images. Some of these images have very large gaps due to the removal of clouds. Is there ...
Jando's user avatar
  • 89
1 vote
1 answer
842 views

Getting scipy.cKDTree to return everything with a given meter radius

I want to find everything within a 0.1 meter radius. I'm confused on exactly how query_ball_point is getting distance. I'm using decimal degree coordinates when creating the cKDTree, ie. [(-73....
HeardEmSay's user avatar
1 vote
0 answers
274 views

Groups the pixels into the nearest large class

I have clustered an image with 3 classes using the K_menas, but I would like the isolated pixel groups to be incorporated into the nearest large class. Is there a quick way to do this in the K_means ...
vins_26's user avatar
  • 443
0 votes
0 answers
311 views

How to redesign confusion matrices from Ecognition with python and seaborn?

I am using eCognition manual classification as a baseline for performance comparison with other 3D classification methods. For each method, I am creating confusion matrices in python with sklearn and ...
JesEcog's user avatar
1 vote
0 answers
840 views

Memory allocation problem when running Random forest regression in python

I have image with 4 bands . I want to see if I can predict the first band using the 3 other bands. My problem is that I cannot fit the model because I get the following error message: MemoryError: ...
ReutKeller's user avatar
  • 2,149
0 votes
2 answers
1k views

Cluster networkx graph with sklearn produces unexpected results

I have an interconnected weighted graph. The graph is a representation of a Multilinestring connecting points. See the visualisation in QGIS: So from each point I know how much it costs to go to ...
Leo's user avatar
  • 952
5 votes
1 answer
1k views

How can you use scikit-learn to do PCA on a 9 band raster image?

I would like to do a PCA on a 9band raster image to reduce the total number of inputs bands to 3. However, I'm not able to do it as I don't think I understand what sklearn is doing in its PCA. Some ...
toferkey's user avatar
  • 170
3 votes
0 answers
3k views

Encoding categorical variable for random forest with sklearn

I have a random forest model that works pretty well, taking a bunch of vanilla remote sensing raster data as input. I think it could be improved with addition of some information that I currently have ...
LAT's user avatar
  • 569
1 vote
0 answers
73 views

Handling Nodata values in sklearn (working w pyimpute)

I'm using sklearn for a classification project. Because I'm relatively new to doing geospatial tasks outside of a GUI, I'm using Matt Perry's pyimpute (link has all the code for that module) to handle ...
LAT's user avatar
  • 569
1 vote
0 answers
196 views

Nearest neighbours with Python [closed]

I'm learning Python and this has been a bit of a challenge! My DataFrame looks like this below. name geometry 0 Uimastadion POINT (24.93045 60.18882) 1 Hartwall ...
user2987639's user avatar
0 votes
1 answer
993 views

Dzetsala plugin on QGIS, missing scikit-learn

I want to run random forest classification from Dzetsaka plugin on QGIS 3.4.7 but I can't as a message appears as following: Scikit-learn library is missing on your computer. You must use Gaussian ...
agrullo's user avatar
  • 161
2 votes
0 answers
1k views

Change size to the squares of the confusion matrix [closed]

I have a problem with size in the 'plot_confusion_matrix', the squares of the confusion matrix appear cut off. I would like to solve this problem. svc = SVC(kernel='linear',C=1,probability=True) svc....
vins_26's user avatar
  • 443
1 vote
0 answers
423 views

Kernel Density Estimate on point data in degrees (scikit-learn)

I am estimating point density, where I am having point coordinates in degrees, I need a raster(over the extent of these points) which provides a density estimation on each cell. I have tried on R but ...
Nitin kandpal's user avatar
0 votes
1 answer
1k views

Classify polygons with Random Forest on Python

I have a segmentation shapefile made with e-cognition containing many polygons of which a part classified for the train file. I would like to classify them by applying labels (e.g. water, vegetation, ...
vins_26's user avatar
  • 443
1 vote
0 answers
71 views

How to find data orientation atfer an ICA

I'm trying to cluster tractor sensor data by row in a python script. For the moment I'm trying to find data orientation after a FastICA (sklearn), vertical or horizontal. Because for same data, ...
Tim C.'s user avatar
  • 1,516
4 votes
2 answers
4k views

Installing scikit-learn python package for QGIS on Win

I want to install scikit-learn package to be executed in Python-QGIS. I've tried to use OSGeo4W Shell to install with pip. But I got this error. I've tried to run osgeo4w-setup-x86_64.exe and install ...
Trần Ngọc Bích's user avatar
0 votes
1 answer
810 views

Why is there a need to train the clusterer in Google Earth Engine

I'm wondering why before clustering the global Landsat-7 image in this tutorial, the authors first trained the clusterer on a subset region around Egypt? Since the Kmean algorithm is supposed to be ...
Hakim's user avatar
  • 956
2 votes
1 answer
1k views

Python with ArcGIS: import scikit-learn fails (bad numpy.dtype)

I am trying to install scikit-learn 0.17.1 (current) into my Python 2.7.3 that accompanies my ArcGIS 10.2. The installation through easy_install goes through smoothly, but I get the following error on ...
Jan Šimbera's user avatar
  • 1,314