Comments (6)
Could you please tell me what parameters you used to call the method?
from st_dbscan.
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from st_dbscan import ST_DBSCAN
# create a 3d data set, e,x,y
df=pd.DataFrame(np.random.random((100000,3)),columns=['e','x','y'])
df=df.sort_values('e')
df.e = (df.e * 86400)+86400
# normalize the data
df['x'] = (df['x'] - df['x'].min()) / (df['x'].max() - df['x'].min())
df['y'] = (df['y'] - df['y'].min()) / (df['y'].max() - df['y'].min())
# transform to numpy array
data = df.loc[:, ['e','x','y']].values
%%time
st_dbscan.fit_frame_split(data, frame_size = 50)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<timed eval> in <module>
C:\p\via37\lib\lib\site-packages\st_dbscan\st_dbscan.py in fit_frame_split(self, X, frame_size, frame_overlap)
138 if not frame_size > 0.0 or not frame_overlap > 0.0 or frame_size < frame_overlap:
139 raise ValueError(
--> 140 'frame_size, frame_overlap not correctly configured.')
141
142 # unique time points
ValueError: frame_size, frame_overlap not correctly configured.
from st_dbscan.
Can you tell me which version of st_dbscan you are using? I cannot replicate the error. See the screenshot below.
from st_dbscan.
0.1.5
Can you place %%time on the first line in cell 4, i'm interested to learn how long this takes. Thank you.
from st_dbscan.
See below - hope this helps you.
CPU times: user 8.61 s, sys: 118 ms, total: 8.72 s
Wall time: 8.83 s
<st_dbscan.st_dbscan.ST_DBSCAN at 0x7fdd5944a310>
from st_dbscan.
Does this resolve the issue for you?
from st_dbscan.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from st_dbscan.