Icon

DL 010 Prepare Adult Dataset

<p><strong>Prepare the "adult" or "census-income" dataset for the use in deep learning nodes and models.</strong><br>Convert numbers to double and do a label enconding on the string variables with the help of SQLite. Yes, you will have to be careful with that :-)<br><br>please download the complete DeepLearning Workflow group:<br>https://hub.knime.com/mlauber71/spaces/Deep%20Learning/DL%20Keras%20Tensorflow%20-%20Basic%20Classification~x8VnrmMzZAk94NlV/</p><p>adapted from: https://kni.me/w/Cm0lqIKkvThyHAD-</p><p></p>

URL: H2O.ai AutoML in KNIME for classification problems https://forum.knime.com/t/h2o-ai-automl-in-knime-for-classification-problems/20923
URL: adapted from: Simple Example for Binary Classification with Keras https://kni.me/w/Cm0lqIKkvThyHAD-
URL: Profile of Kathrin from KNIME https://hub.knime.com/kathrin
URL: UCI - Adult Data Set https://archive.ics.uci.edu/ml/datasets/adult

Prepare the "adult" or "census-income" dataset for the use in deep learning nodes and models.
Convert numbers to double and do a label enconding on the string variables with the help of SQLite. Yes, you will have to be careful with that :-)

please download the complete DeepLearning Workflow group:
https://kni.me/w/x8VnrmMzZAk94NlV


adapted from: https://kni.me/w/Cm0lqIKkvThyHAD-


knime://knime.workflow/../data/my_databse.sqlite=> can be done in memory like inthis example
SQLite Connector
get rid of the"-"
Column Rename (deprecated)
deep_001_training
DB Table Creator
deep_001_training
DB Table Remover
deep_001_training
DB Reader
how to handle thenumeric variables with CAST commands !!! careful in this examples negative values are handeled as 0 (zero)
numeric NVL
../model/normalize.pmml
PMML Writer
30% for validation70 % for testing
Table Partitioner
../model/nvl_numeric_sql_sqlite.table
Table Reader
../model/normalize.pmml
PMML Reader
DROP TABLE IF EXISTS adult_001_training;
DB SQL Executor
deep_001_trainingZ-Score
Normalizer (PMML)
deep_001_training
DB Writer
70% for training 30 % lower
Table Partitioner
this is where the magic happens of label encoding
SQLite Label Encoder
../data/adult.csv
File Reader
string_cols
Column Filter
nvl_numeric
Table Row to Variable
deep_001_training
DB Query
validate
deep_009_validate
$${Sspark_label_encoder}$$ , $${Snvl_numeric}$$
Merge Variables
../data/deep_009_validate.table
Table Writer
../data/Education_Dictionary.xlsxDictionary table to rank education
Excel Reader
test
deep_005_test
numeric_cols
Column Filter
$income$ = ">50K" => "1"TRUE => "0"create Target
Rule Engine
^(?!income$).*
Column Filter
Replace missingvalues
Missing Value
Replace edcuationwith integer values
Cell Replacer (deprecated)
../data/deep_001_training.table
Table Writer
../data/deep_005_test.table
Table Writer

Nodes

Extensions

Links