<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Keras%3A_LabelEncoder</id>
	<title>Keras: LabelEncoder - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Keras%3A_LabelEncoder"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Keras:_LabelEncoder&amp;action=history"/>
	<updated>2026-04-20T05:18:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Keras:_LabelEncoder&amp;diff=56800&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot; sklearn.preprocessing.LabelEncoder   class sklearn.preprocessing.LabelEncoder[source]  Encode labels with value between 0 and n_classes-1. Read more in the User Guide.  Attri...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Keras:_LabelEncoder&amp;diff=56800&amp;oldid=prev"/>
		<updated>2019-08-16T01:47:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; sklearn.preprocessing.LabelEncoder   class sklearn.preprocessing.LabelEncoder[source]  Encode labels with value between 0 and n_classes-1. Read more in the User Guide.  Attri...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
sklearn.preprocessing.LabelEncoder&lt;br /&gt;
&lt;br /&gt;
 class sklearn.preprocessing.LabelEncoder[source]&lt;br /&gt;
&lt;br /&gt;
Encode labels with value between 0 and n_classes-1.&lt;br /&gt;
Read more in the User Guide.&lt;br /&gt;
&lt;br /&gt;
Attributes:	&lt;br /&gt;
&lt;br /&gt;
 classes_ : array of shape (n_class,)&lt;br /&gt;
&lt;br /&gt;
Holds the label for each class.&lt;br /&gt;
See also&lt;br /&gt;
&lt;br /&gt;
 sklearn.preprocessing.OrdinalEncoder&lt;br /&gt;
&lt;br /&gt;
encode categorical features using a one-hot or ordinal encoding scheme.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
LabelEncoder can be used to normalize labels.&lt;br /&gt;
&lt;br /&gt;
 from sklearn import preprocessing&lt;br /&gt;
 le = preprocessing.LabelEncoder()&lt;br /&gt;
 le.fit([1, 2, 2, 6])&lt;br /&gt;
&lt;br /&gt;
 LabelEncoder()&lt;br /&gt;
&lt;br /&gt;
 le.classes_&lt;br /&gt;
&lt;br /&gt;
 array([1, 2, 6])&lt;br /&gt;
&lt;br /&gt;
 le.transform([1, 1, 2, 6]) &lt;br /&gt;
&lt;br /&gt;
 array([0, 0, 1, 2]...)&lt;br /&gt;
&lt;br /&gt;
 le.inverse_transform([0, 0, 1, 2])&lt;br /&gt;
&lt;br /&gt;
 array([1, 1, 2, 6])&lt;br /&gt;
&lt;br /&gt;
It can also be used to transform non-numerical labels (as long as they are hashable and comparable) to numerical labels.&lt;br /&gt;
&lt;br /&gt;
 le = preprocessing.LabelEncoder()&lt;br /&gt;
 le.fit([&amp;quot;paris&amp;quot;, &amp;quot;paris&amp;quot;, &amp;quot;tokyo&amp;quot;, &amp;quot;amsterdam&amp;quot;])&lt;br /&gt;
&lt;br /&gt;
 LabelEncoder()&lt;br /&gt;
&lt;br /&gt;
 list(le.classes_)&lt;br /&gt;
&lt;br /&gt;
 [&amp;#039;amsterdam&amp;#039;, &amp;#039;paris&amp;#039;, &amp;#039;tokyo&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
 le.transform([&amp;quot;tokyo&amp;quot;, &amp;quot;tokyo&amp;quot;, &amp;quot;paris&amp;quot;]) &lt;br /&gt;
&lt;br /&gt;
 array([2, 2, 1]...)&lt;br /&gt;
&lt;br /&gt;
 list(le.inverse_transform([2, 2, 1]))&lt;br /&gt;
&lt;br /&gt;
 [&amp;#039;tokyo&amp;#039;, &amp;#039;tokyo&amp;#039;, &amp;#039;paris&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
Methods&lt;br /&gt;
&lt;br /&gt;
 fit(self, y) 	Fit label encoder&lt;br /&gt;
 fit_transform(self, y) 	Fit label encoder and return encoded labels&lt;br /&gt;
 get_params(self[, deep]) 	Get parameters for this estimator.&lt;br /&gt;
 inverse_transform(self, y) 	Transform labels back to original encoding.&lt;br /&gt;
 set_params(self, \*\*params) 	Set the parameters of this estimator.&lt;br /&gt;
 transform(self, y) 	Transform labels to normalized encoding.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pranala Menarik==&lt;br /&gt;
&lt;br /&gt;
* [[Keras]]&lt;br /&gt;
* [[Python]]&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>