Hey Yichao, it's late here, I will continue tomorrow. Thanks for your help!
> On Nov 23, 2016, at 22:59, Yichao Yu wrote:
>
>> On Wed, Nov 23, 2016 at 7:31 PM, Kevin Liu wrote:
>> In `permute_dims = [Remain_dims,Remove_dims]`, both Remain and Remove_dims
>
On Wed, Nov 23, 2016 at 7:31 PM, Kevin Liu wrote:
> In `permute_dims = [Remain_dims,Remove_dims]`, both Remain and Remove_dims
Which is why it is wrong.
> are vectors. Even if I `permute_dims = [Remain_dims]`, I still get the same
> error.
julia> [[1]]
1-element
In `permute_dims = [Remain_dims,Remove_dims]`, both Remain and Remove_dims
are vectors. Even if I `permute_dims = [Remain_dims]`, I still get the same
error.
On Wed, Nov 23, 2016 at 9:54 PM, Yichao Yu wrote:
> On Wed, Nov 23, 2016 at 6:50 PM, Kevin Liu
On Wed, Nov 23, 2016 at 6:50 PM, Kevin Liu wrote:
> Attached!
```
help?> permutedims
search: permutedims permutedims! ipermutedims
permutedims(A, perm)
Permute the dimensions of array A. perm is a vector specifying a permutation
of length ndims(A). This is a
On Wed, Nov 23, 2016 at 4:02 PM, Kevin Liu wrote:
> Yichao, would you give me some direction? I am a bit lost.
Post and/or identify the error after you've fixed the `Factor.` problem
>
> On Tue, Nov 22, 2016 at 7:58 PM, Kevin Liu wrote:
>>
>> Do you want a
Thanks. Is there anything that sticks out to you?
On Tue, Nov 22, 2016 at 7:39 PM, Yichao Yu wrote:
> On Tue, Nov 22, 2016 at 4:23 PM, Kevin Liu wrote:
> > I would like to remove variable "c" from factor C. I tried removing
> > `Factor.` but it didn't work.
On Tue, Nov 22, 2016 at 4:23 PM, Kevin Liu 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
I would like to remove variable "c" from factor C. I tried removing
`Factor.` but it didn't work.
On Tue, Nov 22, 2016 at 6:54 PM, Yichao Yu wrote:
> On Tue, Nov 22, 2016 at 3:45 PM, Kevin Liu wrote:
> > Yichao, I used a hashtag in the last message to show
On Tue, Nov 22, 2016 at 3:45 PM, Kevin Liu 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`?
Yichao, I used a hashtag in the last message to show you what I want to do. Is
it clear?
On Nov 22, 2016, at 18:27, Yichao Yu wrote:
>> Yichao and DPSanders, I have already used instances of Factor on
>> runtests.jl, instances A, B, and C
>
> AFAICT you are still
julia> A=Factor(["a", "b"],[3, 2],[0.5, 0.1, 0.3, 0.8, 0, 0.9]);
julia> B=Factor(["b", "c"],[2, 2],[0.5, 0.1, 0.7, 0.2]);
julia> C = FactorProduct(A, B)
Factor(["a", "b", "c"],[3, 2, 2],[0.25, 0.05, 0.15, 0.08, 0.0, 0.09, 0.35,
0.07, 0.21, 0.16, 0.0, 0.18])
julia> FactorDropMargin(C, ["c"]) #
> 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]
On Tuesday, November 22, 2016 at 5:53:14 PM UTC-2, Kevin Liu wrote:
> On Friday, November 18, 2016 at 4:07:44 PM UTC-2, Kevin Liu wrote:
> > Have a look please https://github.com/hpoit/MLN.jl/tree/master/BN
> >
> > On Friday, November 18, 2016 at 11:48:58 AM UTC-2, Yichao Yu wrote:On Thu,
> >
On Friday, November 18, 2016 at 4:07:44 PM UTC-2, Kevin Liu wrote:
> Have a look please https://github.com/hpoit/MLN.jl/tree/master/BN
>
> On Friday, November 18, 2016 at 11:48:58 AM UTC-2, Yichao Yu wrote:On Thu,
> Nov 17, 2016 at 2:39 PM, Kevin Liu wrote:
>
> > Right, I
Have a look please https://github.com/hpoit/MLN.jl/tree/master/BN
On Friday, November 18, 2016 at 11:48:58 AM UTC-2, Yichao Yu wrote:
>
> On Thu, Nov 17, 2016 at 2:39 PM, Kevin Liu
> wrote:
> > Right, I need the instance of Factor
>
> Then use the instance of Factor.
>
> >
On Thu, Nov 17, 2016 at 2:39 PM, Kevin Liu wrote:
> Right, I need the instance of Factor
Then use the instance of Factor.
>
> On Thursday, November 17, 2016 at 5:33:05 PM UTC-2, Yichao Yu wrote:
>>
>> On Thu, Nov 17, 2016 at 2:27 PM, Kevin Liu wrote:
>> > I
If you can produce a minimal working example (the *shortest* piece of code that
produces the problem and that people can run), you will be more likely to get
help. This probably involves removing a lot of stuff from your code that I'd
not relevant to this particular problem.
Right, I need the instance of Factor
On Thursday, November 17, 2016 at 5:33:05 PM UTC-2, Yichao Yu wrote:
>
> On Thu, Nov 17, 2016 at 2:27 PM, Kevin Liu
> wrote:
> > I replaced Factor[:FactorMargin]() with Factor.FactorMargin() back
> again.
> >
> > Still, for
On Thu, Nov 17, 2016 at 2:27 PM, Kevin Liu wrote:
> I replaced Factor[:FactorMargin]() with Factor.FactorMargin() back again.
>
> Still, for FactorOperations.jl on Atom, I get {UndefVarError: Factor not
> defined} at the end of each block.
>
> Factor is defined on Factor.jl, and
{Factor.FactorMargin()} simply marginalizes non-stated variables in Factor.
On Thursday, November 17, 2016 at 5:27:38 PM UTC-2, Kevin Liu wrote:
>
> I replaced Factor[:FactorMargin]() with Factor.FactorMargin() back again.
>
> Still, for FactorOperations.jl on Atom, I get {UndefVarError: Factor
I replaced Factor[:FactorMargin]() with Factor.FactorMargin() back again.
Still, for FactorOperations.jl on Atom, I get {UndefVarError: Factor not
defined} at the end of each block.
Factor is defined on Factor.jl, and that file evaluates fine.
The main file, BN.jl, includes Factor.jl and
On Wed, Nov 16, 2016 at 7:24 PM, Kevin Liu wrote:
> Hi Yichao!
In general there's nothing from the code you posted that shows what
you want to do.
>
> Here is the function from FactorOperations.jl
>
> function FactorDropMargin(A::Factor, Remove_var::Vector{String})
>
Hi Yichao!
Here is the function from FactorOperations.jl
function FactorDropMargin(A::Factor, Remove_var::Vector{String})
Remove_dims = indexin(Remove_var, A.var)
if any(Remove_dims==0)
error("Wrong variable!")
end
Remain_var = symdiff(A.var, Remove_var)
Remain_dims
On Wed, Nov 16, 2016 at 6:50 PM, Kevin Liu wrote:
> From this issue https://github.com/JuliaPy/PyPlot.jl/issues/157 I understand
^^ This is irrelevant unless you are using PyCall
>
> `Factor[:FactorMargin](A, Remove_var, Remain_var, Remove_dims, Remain_dims)`
> (line 85 of
>From this issue https://github.com/JuliaPy/PyPlot.jl/issues/157 I
understand
`Factor[:FactorMargin](A, Remove_var, Remain_var, Remove_dims,
Remain_dims)` (line 85 of FactorOperations.jl) should pass, as it does on
Atom, but not on the REPL, which throws
Got an exception of type
25 matches
Mail list logo