Hi Sheila.
I think we don't have a function for this because it seems pretty easy to do yourself.
That might be also true for "Scaler" and "Normalizer", though.
You can just subtract the minimum and divide by the max-min to get
[0, 1] features and then go from there.
We could actually add something to do this.
Cheers,
Andy

On 09/04/2012 04:04 PM, Sheila the angel wrote:
Hello All,
Another short question,
How to scale data features to a given range?
For example I want to scale my data features to  [-1, +1] or [0,100] .
sklearn.preprocessing don't have any direct function for this !!

Thanks
--
Sheila


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to