[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*To*:*Subject*: Re: [IMP-dev] score function weights*From*: Ben Webb <>*Date*: Tue, 06 Nov 2007 19:37:14 -0800

Daniel Russel wrote:

And I'm not sure where you'd store the weight,if not in the restraint. Why not just in the Restraint base class?The Restraint never actually uses its weight. It is a property of howthe thing calling the restraint combines the weights, not of therestraint itself. And so should go with the thing calling the restraint.

myemrestraint.set_scale(0.1) model.evaluate() Are you suggesting that instead he should do: model.evaluate(scale_factors=[1.0] * 999 + [0.1]) ? Or am I misunderstanding what you're saying?

myemrestraint.set_standard_deviation(0.1) model.evaluate()

Plus, this way we can reuse a restraint with different weights indifferent places if we should so desire.

Ben -- http://salilab.org/~ben/ "It is a capital mistake to theorize before one has data." - Sir Arthur Conan Doyle

**Follow-Ups**:**Re: [IMP-dev] score function weights***From:*Daniel Russel <>

**References**:**score function weights***From:*Friedrich Foerster <>

**Re: score function weights***From:*Daniel Russel <>

**Re: score function weights***From:*Ben Webb <>

**Re: score function weights***From:*Daniel Russel <>

**Re: [IMP-dev] score function weights***From:*Ben Webb <>

**Re: [IMP-dev] score function weights***From:*Daniel Russel <>

- Prev by Date:
**Re: [IMP-dev] Death to objects** - Next by Date:
**Re: [IMP-dev] score function weights** - Previous by thread:
**Re: [IMP-dev] score function weights** - Next by thread:
**Re: [IMP-dev] score function weights** - Index(es):