On Tue, Nov 22, 2016 at 4:23 PM, Kevin Liu <kvt...@gmail.com> wrote:
> I would like to remove variable "c" from factor C. I tried removing
> `Factor.` but it didn't work.

There might be (almost certainly) multiple mistakes in the code so
fixing one won't fix all of them.

>
> On Tue, Nov 22, 2016 at 6:54 PM, Yichao Yu <yyc1...@gmail.com> wrote:
>>
>> On Tue, Nov 22, 2016 at 3:45 PM, Kevin Liu <kvt...@gmail.com> wrote:
>> > Yichao, I used a hashtag in the last message to show you what I want to
>> > do. Is it clear?
>>
>> No
>>
>> I'm just talking about the `Factor.` in the line I linked. I don't
>> know what you want to access. Do you just want `FactorMargin`? What's
>> the extra `Factor.` for?
>>
>> >
>> > On Nov 22, 2016, at 18:27, Yichao Yu <yyc1...@gmail.com> wrote:
>> >
>> >>> Yichao and DPSanders, I have already used instances of Factor on
>> >>> runtests.jl, instances A, B, and C
>> >>
>> >> AFAICT you are still accessing a non existing field of a type[1] and
>> >> it's unclear what you actually want to do.
>> >>
>> >> [1]
>> >> https://github.com/hpoit/MLN.jl/blob/1c13725666f34587e57c4a1757e6222cacaeab73/BN/src/FactorOperations.jl#L87
>> >>
>> >>>
>> >>> A=Factor(["a", "b"],[3, 2],[0.5, 0.1, 0.3, 0.8, 0, 0.9])
>> >>> B=Factor(["b", "c"],[2, 2],[0.5, 0.1, 0.7, 0.2])
>> >>> C = FactorProduct(A, B)
>> >>> FactorDropMargin(C, ["c"])
>> >>>
>> >>> Do you recommend I make any of the functions in FactorOperations.jl
>> >>> into inner constructors of `type Factor` in Factor.jl?
>
>

Reply via email to