Hi CD, Thanks a lot.
On Wed, Aug 19, 2015 at 10:41 PM, CD Athuraliya <[email protected]> wrote: > Hi Thushan, > > You can retrieve the number of output classes (or class labels of response > variable) via this [1] API (e.g. > https://localhost:9443/api/datasets/1/stats?feature=Class). Number of > unique labels in that feature values are given in the JSON response like > below. > > [ > { > "missing": 0, > "median": "0", > "values": [ > [ > "0", > 500 > ], > [ > "1", > 268 > ] > ], > *"unique": 2,* > "std": "0.477", > "mean": "0.349", > "bar": true, > "key": "Frequency" > } > ] > > [1] > https://docs.wso2.com/display/ML100/Retrieve+summarized+statistics+of+a+feature+in+a+dataset+via+REST+API > > Regards, > CD > > On Wed, Aug 19, 2015 at 5:47 PM, Thushan Ganegedara <[email protected]> > wrote: > >> Hi all, >> >> The D3 visualization component is almost ready. I've to tweak few things. >> I'm attaching an images of what it looks like. Also there's a button for >> updating the visualization whenever the Layer Sizes input text is changed >> >> Could someone please tell me a way to obtain the number of classes with >> an ajax call maybe? I could obtain the input feature count but not the >> output class count. >> >> -- >> Regards, >> >> Thushan Ganegedara >> School of IT >> University of Sydney, Australia >> > > > > -- > *CD Athuraliya* > Software Engineer > WSO2, Inc. > lean . enterprise . middleware > Mobile: +94 716288847 <94716288847> > LinkedIn <http://lk.linkedin.com/in/cdathuraliya> | Twitter > <https://twitter.com/cdathuraliya> | Blog > <http://cdathuraliya.tumblr.com/> > -- Regards, Thushan Ganegedara School of IT University of Sydney, Australia
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
