Giter VIP home page Giter VIP logo

Comments (7)

Kelvin-M avatar Kelvin-M commented on September 26, 2024

It should be reviewed and validated in the substra specification before implementing it.

from substra-backend.

inalgnu avatar inalgnu commented on September 26, 2024

@Kelvin-M I don't see anything in the spec preventing us from this change, I think we can do this update

from substra-backend.

Kelvin-M avatar Kelvin-M commented on September 26, 2024

@jmorel It may be easier to just compute the hash on the metrics file instead of description no ?

from substra-backend.

jmorel avatar jmorel commented on September 26, 2024

After giving this some thought, I think the unicity should be on metrics file + datamanager key + data samples keys. This way you can have multiple objective sharing the same metrics code but with different data sets. And you can have the same data set but with different metrics code. I think this covers every use case.

And it removes the description from the check, which in my opinion makes no sense.

from substra-backend.

Kelvin-M avatar Kelvin-M commented on September 26, 2024

@jmorel I think it will be difficult to add datamanager key and data samples keys as paramater for the hash.
Doing something like :

data_keys = ''.join([data_manager_pkhash] + sorted(data_sample_pkhashes))
pkhash = get_hash(metrics, key=data_keys)

will be difficult beccause backend db do not store or have access to the data_manager_pkhash and data_sample_pkhashes relation with the objective for the full save.
You can see in backend/backend/substrapp/models/objective.py for instance :)

from substra-backend.

jmorel avatar jmorel commented on September 26, 2024

In this case I summon the powers that be! @inalgnu @camillemarini what should we do here?

from substra-backend.

samlesu avatar samlesu commented on September 26, 2024

I do agree with @Kelvin-M, technically it won't be straightforward to use the keys of the backend.

In the meantime, using the metrics instead of the description would be a good short term solution.

Could you confirm @inalgnu or @camillemarini ?

from substra-backend.

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.