Comments (3)
Without specifying a path, it stores the pickle file in the working directory. I'm not sure why it does not load correctly. However, I changed the saving directory to the default systems path. Maybe that helps. For your second questions, the models were not stored but now they are!
Update to the latest version.
pip install -U clustimage
This should work now:
from clustimage import Clustimage
# Init
cl = Clustimage(method='pca')
# load example with flowers
pathnames = cl.import_example(data='flowers')
# Cluster flowers
cl.fit_transform(pathnames)
cl.save(overwrite=True)
cl.load()
results_find = cl.find(pathnames[0:5], k=10, alpha=0.05)
cl.plot_find()
# Results are stored in:
print(cl.results)
# Parameters are stored in:
print(cl.params)
# Pickle file is saved to:
cl.params['filepath']
from clustimage.
I added the label output in the results of the find functionality.
update with: pip install -U clustimage
Check the documentation over here:
https://erdogant.github.io/clustimage/pages/html/core_functions.html#find
from clustimage.
Thank you so much, now the saving and uploading of the file works perfectly well, I appreciate your support!
on a second note, what I am trying to achieve is to run the clustering model on dataset nb1 (let's say cats and dogs), save it, upload it and run it again on a second dataset (let's say cats, dogs and frogs).
I want it to be able to recognize the labels of the two first classes (which it had clustered before) so I only have to manually label the new class.
I found that the function "find() (clustimage.clustimage.Clustimage method)" might be helpful but I still don't know how to recover the labels!
I would appreciate your help!
from clustimage.
Related Issues (20)
- Find function errors HOT 2
- Small question about recommanded usage HOT 2
- Found a bug in "imresize" HOT 2
- mini-batch k-means
- zero-size array to reduction operation minimum which has no identity HOT 8
- load model
- libpng error not catched HOT 1
- Define number of clusters manually HOT 1
- Memory Error during import_dat HOT 3
- Extract features using deep learning HOT 2
- Label names mixed up in results and results_unique HOT 4
- How does one load image not from cl.import_example HOT 3
- Logging HOT 4
- Clustimage.find() and new images HOT 2
- Trying to retrieve original file path names in the results HOT 4
- can not find or create dirpath under linux HOT 3
- Unconsistency in scatter function HOT 2
- Transfer learning HOT 2
- Trainability HOT 6
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 clustimage.