Code Monkey home page Code Monkey logo

Comments (3)

erdogant avatar erdogant commented on June 3, 2024 1

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.

erdogant avatar erdogant commented on June 3, 2024 1

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.

MalekBezzina avatar MalekBezzina commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.