Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEW FEATURE] COmposition Operator #82

Open
1 of 2 tasks
chaithyagr opened this issue Jan 31, 2020 · 0 comments
Open
1 of 2 tasks

[NEW FEATURE] COmposition Operator #82

chaithyagr opened this issue Jan 31, 2020 · 0 comments
Assignees
Projects

Comments

@chaithyagr
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We need a composition operator that takes in a vector of operators and carries out composition.
These indivitual operations can as well be proximity or linear operators. This way we can implement SparseGroupLASSO as GroupLASSO(SparseThreshold) and so on.

Describe the solution you'd like
Implement a class as:

class CompositionOperator(Base):
    def __init__(list_of_operators):
        self.list = list
...
    def _op_method(data):
        result = data
        for i in range(len(self.list):
            result = self.list[i].op(result)
        return result

Are you planning to submit a Pull Request?

  • Yes
  • No
@chaithyagr chaithyagr self-assigned this Jan 31, 2020
@sfarrens sfarrens added this to ToDo in ModOpt-dev via automation Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
ModOpt-dev
  
ToDo
Development

No branches or pull requests

1 participant