Giter Club home page Giter Club logo

Comments (2)

rhayes777 avatar rhayes777 commented on May 29, 2024

So currently we create three prior collections:

shared_lens_light_priors = PriorCollection(UniformPrior('centre_x'), UniformPrior('centre_y'))
lens_light_sersic_1_priors = PriorCollections(...)
lens_light_sersic_2_priors = PriorCollections(...)

In this formalism we need a unit hypercube vector corresponding to each individual collection. That is converted into a dictionary of arguments by the collection:

sersic_1_arguments = lens_light_sersic_1_priors.arguments_for_vector(vector1)
sersic_2_arguments = lens_light_sersic_2_priors.arguments_for_vector(vector2)
shared_lens_arguments = shared_lens_light_priors.arguments_for_vector(vector3)

The individual sersic arguments are updated using the shared arguments:

sersic_1_arguments.update(shared_lens_arguments)
sersic_2_arguments.update(shared_lens_arguments)

And finally the sersic profiles are instantiated using the combined arguments:

sersic_1 = EllipticalSersic(**sersic_1_arguments)
sersic_2 = EllipticalSersic(**sersic_2_arguments)

This has some aspect of manually mapping unit vectors to classes. We may want to encode the associated classes and their structure into the PriorCollection some how.

from pyautolens.

Jammy2211 avatar Jammy2211 commented on May 29, 2024

I'm going to close this, as we seem to have moved the CombinedProfile classes to the Galaxy class, and are discussing this aspect of the ClassMap w.r.t that now.

from pyautolens.

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.