samcomber / spacv Goto Github PK
View Code? Open in Web Editor NEWSpatial cross-validation in Python.
License: BSD 3-Clause "New" or "Revised" License
Spatial cross-validation in Python.
License: BSD 3-Clause "New" or "Revised" License
Hi there,
I have the latest version of shapely and it doesn't seem to recognise 'asPolygon'. Has this been depreciated from shapely?
import spacv
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\x\Documents\spopt_venv\lib\site-packages\spacv_init_.py", line 5, in
from .spacv import *
File "C:\Users\x\Documents\spopt_venv\lib\site-packages\spacv\spacv.py", line 7, in
from .grid_builder import construct_blocks, assign_pt_to_grid
File "C:\Users\x\Documents\spopt_venv\lib\site-packages\spacv\grid_builder.py", line 3, in
from shapely.geometry import Polygon, asPolygon
ImportError: cannot import name 'asPolygon' from 'shapely.geometry' (C:\Users\x\Documents\spopt_venv\lib\site-packages\shapely\geometry_init_.py)
Any recommendations would be greatly appreciated :)
P
Watching these updates roll in is very exciting :)
I wanted to just make a minor suggestion: the geopandas.points_from_xy
can be significantly more efficient than the list comprehension + shapely.geometry.Point()
strategy used here.
Line 20 in 13f6303
This is mainly because of efficiency gains made using pygeos
, which vectorizes the creation of the points. I'd use this wherever you're casting from arrays to geopandas.Geo*
containers.
"UserWarning: CRS mismatch between the CRS of left geometries and the CRS of right geometries."
^ getting this for every fold, unsure if it's a critical concern.
Any advice?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.