Re: AdaptiveLogisticRegression.close() ArrayIndexOutOfBoundsException

2011-05-02 Thread Ted Dunning
On Mon, May 2, 2011 at 12:39 AM, Tim Snyder wrote: > ... > In your options a through c - I am not sure I understand the difference > between (a) and (c). Is (a) the current state (let it fail), and (c) a > small fix to let things complete, but understand that it is probably not > valuable? > Th

RE: AdaptiveLogisticRegression.close() ArrayIndexOutOfBoundsException

2011-05-02 Thread Tim Snyder
r() ); >> } >> >> >> private Vector encodeFeatureVector( Map codes, int >> actual ) >> { >> Vector v = new RandomAccessSparseVector( FEATURES ); >> >> bias.addToVector( "", 1, v ); >> >> for( String code : codes.keySet() ) >>

RE: AdaptiveLogisticRegression.close() ArrayIndexOutOfBoundsException

2011-05-02 Thread Tim Snyder
r() ); >> } >> >> >> private Vector encodeFeatureVector( Map codes, int >> actual ) >> { >> Vector v = new RandomAccessSparseVector( FEATURES ); >> >> bias.addToVector( "", 1, v ); >> >> for( String code : codes.keySet() ) >>

Re: AdaptiveLogisticRegression.close() ArrayIndexOutOfBoundsException

2011-05-01 Thread Ted Dunning
r() ); >> } >> >> >> private Vector encodeFeatureVector( Map codes, int >> actual ) >> { >>Vector v = new RandomAccessSparseVector( FEATURES ); >> >>bias.addToVector( "", 1, v ); >> >>for( String code : codes.keySet() ) >>{ >>

Re: AdaptiveLogisticRegression.close() ArrayIndexOutOfBoundsException

2011-05-01 Thread Ted Dunning
gt;Map> traceDictionary = Maps.newTreeMap(); >ModelDissector md = new ModelDissector(); > >encoder.setTraceDictionary( traceDictionary ); >bias.setTraceDictionary( traceDictionary ); > >int actual = msgs.intern( msgId ); > >traceDictionary.clear(); >Vector v = encodeFea

RE: AdaptiveLogisticRegression.close() ArrayIndexOutOfBoundsException

2011-05-01 Thread Tim Snyder
\t%s\t%.1f\t%s\n", w.getFeature(), w.getWeight(), w.getCategory( 1 ), w.getWeight( 1 ), w.getCategory( 2 ), w.getWeight( 2 ) ); } } } The End. Tim Original Message Subject: Re: AdaptiveLogisticRegression.close() ArrayIndexOutOfBoundsException From: Ted Dunning Date: Sun, May

Re: AdaptiveLogisticRegression.close() ArrayIndexOutOfBoundsException

2011-05-01 Thread Ted Dunning
Can you put your code on github? There is a detail that slipped somewhere and I can't guess where it is. Your constructor is correct for a binary classifier, but I can't say much else. How much data, btw, did you pour in? On Sun, May 1, 2011 at 3:18 AM, Tim Snyder wrote: > I am currently usin