Git Product home page Git Product logo

Comments (5)

rlnsanz avatar rlnsanz commented on August 15, 2024 2

Hi @yauhen-info, thank you for your interest in Flor and for the feedback. Yes, indeed the docs are deprecated.

Flor is currently in a state where people should be able to try it on their own machines. I'll spend some time today updating the docs so people can try a tutorial and see what we're about.

Flor is transparent now and invoked from the command line: flor python iris.py experiment_name_iris. So you don't need Flor inside your code. More instructions to follow.

from flor.

rlnsanz avatar rlnsanz commented on August 15, 2024 1

Hi all, please see updated docs. More documentation to follow, but this should be enough to get you started. Thanks!

from flor.

gemengshu avatar gemengshu commented on August 15, 2024

Same problem and I install from source lol
The python version is 3.7

from flor.

rlnsanz avatar rlnsanz commented on August 15, 2024

Thanks everyone, we're rolling out a new version of Flor and the docs are outdated. The new version will be transparent to the user (you won't need to import Flor), but it will require some command-line invocations. I'll follow up once we update the docs, and explain the relevant changes. Leaving the issue open until then.

from flor.

yauhen-info avatar yauhen-info commented on August 15, 2024

I have the same issue as the topic-starter. Thanks, @rlnsanz, for your work.

Though atm looks like the way described in the docs is deprecated.

The docs say:

from sklearn import datasets
from sklearn import svm
from sklearn.model_selection import train_test_split
import flor

log = flor.log

@flor.track
def fit_and_score_model():
    iris = datasets.load_iris()
    X_tr, X_te, y_tr, y_te = train_test_split(iris.data, iris.target,
                                              test_size=log.param(0.15),
                                              random_state=log.param(430))

    clf = svm.SVC(gamma=log.param(0.001), C=(100.0))
    clf.fit(X_tr, y_tr)

    score = log.metric(clf.score(X_te, y_te))


with flor.Context('iris'):
    fit_and_score_model()

The exact same example is under the deprecated folder of the source code https://github.com/ucbrise/flor/blob/master/examples/deprecated/iris/iris.py

Thus, I bet that current working example of Log initialization is under https://github.com/ucbrise/flor/blob/master/examples/iris/iris.py

from flor.

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.