Didn't seem to work either
PyError (PyObject_Call) <type 'exceptions.AttributeError'>
AttributeError("'float' object has no attribute 'shape'",)
File "/Users/arshakn/anaconda/lib/python2.7/site-packages/sklearn/hmm.py",
line 419, in fit
self._init(obs, self.init_params)
File "/Users/arshakn/anaconda/lib/python2.7/site-packages/sklearn/hmm.py",
line 756, in _init
self.n_features = obs[0].shape[1]
while loading In[295], in expression starting on line 3
in pyerr_check at /Users/arshakn/.julia/v0.3/PyCall/src/exception.jl:58
in pycall at /Users/arshakn/.julia/v0.3/PyCall/src/PyCall.jl:85
On Thu, Sep 25, 2014 at 8:37 PM, Steven G. Johnson <[email protected]>
wrote:
>
>
> On Thursday, September 25, 2014 11:10:22 PM UTC-4, Arshak Navruzyan wrote:
>>
>> Jake,
>>
>> Thanks for the suggestion. When I do that, I get back (anonymous
>> function). What I would like to get back is the actual model (with the new
>> parameters) to be able to do things like this
>>
>
> If you want the return value to be the raw PyObject, do
>
> pycall(hmmodel["fit"], PyObject, df[:abc])
>
> (This will no longer be necessary in Julia 0.4 once function-calling is
> overloadable.)
>