Username Remember Me?
Password   forgot password?
   
   
Error in converting trained classifier to pipeline
Posted: 14 May 2009 08:14 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  25
Joined  2009-04-17

Sir,
I tried to execute the example given in Chapter 5(Statistical Models).
These are the following steps i followed:

>> a=gendatf

Welcome to PRTools, version 4.1.4 (11-Oct-2008).
This version of PRTools is valid for non-commercial academic use only.
See http://prtools.org/ for more information.

new lablist:
1: 1 -> apple
2: 2 -> banana
Fruit set, 260 by 2 dataset with 3 classes: [100 100 60]
>> w=scalem(a,’variance’)
2 to 2 trained mapping --> affine
>> w2=parzenc(a*w)
PR_Warning: getprior: parzenc: No priors found in dataset, class frequencies are used instead
Parzen Classifier, 2 to 3 trained mapping --> parzen_map
>> w3=ldc(a*w)
PR_Warning: getprior: ldc: No priors found in dataset, class frequencies are used instead
Bayes-Normal-1, 2 to 3 trained mapping --> normal_map
>> p=sdconvert(w*[w2 w3]*meanc)

PRSD Toolbox Lite 1.1.6 (11-May-2009), Copyright (C) 2007-2009, PR Sys Design, All rights reserved
Only for non-commercial use.

sequential pipeline 2x3 ‘Mean combiner’
1 sdp_affine 2x2
2 sdp_stack 2x6
3 sdp_combine 6x3 Fixed combiner

>> out=[0 0]*p(1:2)

AFTER EXECUTION OF THE ABOVE STATEMENT, THE FOLLOWING ERROR OCCURS:

error: unknown action name ‘øÜi’
Saving minidump to file C:\DOCUME~1\super\LOCALS~1\Temp\matlab_crash_dump.2076.0.dmp

------------------------------------------------------------------------
Segmentation violation detected at Thu May 14 12:12:30 2009
------------------------------------------------------------------------
Configuration:
MATLAB Version:  7.6.0.324 (R2008a)
MATLAB License:  161051
Operating System: Microsoft Windows XP
Window System:  Version 5.1 (Build 2600: Service Pack 3)
Processor ID:  x86 Family 6 Model 7 Stepping 10, GenuineIntel
Virtual Machine:  Java 1.6.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Default Encoding:  windows-1252

Fault Count: 1

Register State:
EAX = 00000000 EBX = 00000001
ECX = 79cb22b0 EDX = 00000000
ESI = 18937610 EDI = 183a16e0
EBP = 00d3d024 ESP = 00d3d010
EIP = 18882fb5 FLG = 00210293

Stack Trace:
[0] prsd_mex.mexw32:0x18882fb5(0x18a84940, 0, 0x18a84940, 0)
[1] prsd_mex.mexw32:0x1888190f(1, 0x00d3d8a4, 2, 0x00d3d934)
[2] libmex.dll:_mexRunMexFile(1, 0x00d3d8a4, 2, 0x00d3d934) + 129 bytes
[3] libmex.dll:private: void __thiscall Mfh_mex::runMexFileWithSignalProtection(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00d3d8a4, 2, 0x00d3d934) + 73 bytes
[4] libmex.dll:public: virtual void __thiscall Mfh_mex::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00d3d8a4, 2, 0x00d3d934) + 220 bytes
[5] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00d3d8a4, 2, 0x00d3d934) + 193 bytes
[6] m_interpreter.dll:void __cdecl mdCallFunction(int,struct mxArray_tag * *,int,struct mxArray_tag * *,class Mfh_MATLAB_fn *)(1, 0x00d3d8a4, 2, 0x00d3d934) + 56 bytes
[7] m_interpreter.dll:public: void __thiscall ResolverFunctionDesc::CallFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const)(1, 0x00d3d8a4, 2, 0x00d3d934) + 93 bytes
[8] m_interpreter.dll:public: bool __thiscall Resolver::CallMFunction(int,int,class _m_operand * const,union m_operand_storage *,int,class _m_operand * const,union m_operand_storage *,int *)(1, 1, 0x18c89420, 0) + 1157 bytes
[9] m_interpreter.dll:bool __cdecl inResolveMFunctionCall(struct _m_function_desc *,int,int,class _m_operand * const,union m_operand_storage *,int,class _m_operand * const,union m_operand_storage *,int *,enum inMarshalType *,int,class mpsTypeSequenceNlhs const *,struct mxArray_tag * (__cdecl*)(int))(0x196fae60, 1, 1, 0x18c89420) + 157 bytes
[10] m_interpreter.dll:private: bool __thiscall accelImpl::MFunctionCall(struct _accelOp * *)(0x00d3df5c, 0xffffffff, 0x195d17c0, 0x18a85b60) + 186 bytes
[11] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelImpl::Exec(void)(0x195d17c0, 1, 0xffffffff, 0x00d3dea0) + 189 bytes
[12] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelCode::Call(enum inMarshalType *,int *)const (0x00d3e058, 0x00d3e030, 1, 0) + 118 bytes
[13] m_interpreter.dll:public: static bool __cdecl inJit::ExecuteHotSegment(struct _inJitAccelInfo *,enum opcodes *,int *,int *)(0x00d3e0fc, 0x00d3e1b0, 0x00d3e160, 0x00d3e2f4) + 1874 bytes
[14] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *,int *)(1, 1392, 113, 0) + 320 bytes
[15] m_interpreter.dll:int __cdecl protected_inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 1392, 25, 0) + 74 bytes
[16] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 1392, 25, 0) + 254 bytes

Profile
 
 
Posted: 14 May 2009 08:52 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  236
Joined  2008-04-26

Dear Park,

thanks for your feedback! I was able to repeat the crash on windows. Other platforms seem OK. Rebuilding the MEX fixed the problem on my side. Please download the new mex from:
http:/prsysdesign.net/files/prsd_mex.mexw32.zip
unzip it and copy the MEX to your prsd_toolbox directory. You may need to use clear mex in Matlab so that previous MEX is released if still in memory.

Does it help?

Pavel

Profile
 
 
Posted: 14 May 2009 11:41 AM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  25
Joined  2009-04-17

Thanks pavel. It works

Profile
 
 
   
 
 
‹‹ Missing help      confusion matrix error ››