-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error occur while creating training data #2
Comments
I have solve this problem by modify the fllowing code: files = [os.path.join(self.dataDir, i) for i in files if i.endswith('.LAS')] but there is new ereor occur: (AutomatedWellLogCorrelation) D:\workspace\pycharm\AutomatedWellLogCorrelation>python createTrainingData.py --data-name autoWell --data-dir data\McMurray_data\las\ --output
-dir data\train\McMurray_data
D:\ProgramData\Anaconda3\envs\AutomatedWellLogCorrelation\lib\site-packages\sklearn\utils\validation.py:72: FutureWarning: Pass max_patches=10 as keyword args. From version
1.0 (renaming of 0.25) passing these as positional arguments will result in an error
"will result in an error", FutureWarning)
not enough values to unpack (expected 2, got 1)
D:\ProgramData\Anaconda3\envs\AutomatedWellLogCorrelation\lib\site-packages\sklearn\utils\validation.py:72: FutureWarning: Pass max_patches=10 as keyword args. From version
1.0 (renaming of 0.25) passing these as positional arguments will result in an error
"will result in an error", FutureWarning)
not enough values to unpack (expected 2, got 1)
D:\ProgramData\Anaconda3\envs\AutomatedWellLogCorrelation\lib\site-packages\sklearn\utils\validation.py:72: FutureWarning: Pass max_patches=10 as keyword args. From version
1.0 (renaming of 0.25) passing these as positional arguments will result in an error
"will result in an error", FutureWarning)
not enough values to unpack (expected 2, got 1)
...
... I debuged the code and found that it was caused by the fllowing code, line 113 of file Parallel(n_jobs=self.cpuCount)(delayed(self.saveLasPatches)(wellGrps.get_group(i), i) for i in lasData['Well'].unique()) can you tell me the possible reason to this error , thanks |
Hi there, I also got this issue! I think the problem is in line 181 where there is a function called "extract_patches". This function is not available on my sklearn version, which is 0.24.2 I solved this issue by looking back to the old sklearn version, you can find the code on this link: By adding the extract_patches function manually from those links, I can extract the logs to .npy format. Hope this help :) |
Has this error occur to you ,can you tell me how to fix it, thanks~!
The text was updated successfully, but these errors were encountered: