LogTransformation
- class geoanalytics.normalization.LogTransformation.LogTransformation(dataframe)[source]
Bases:
objectAbout this algorithm
- Description:
LogTransformation applies logarithmic normalization to numerical features (excluding ‘x’ and ‘y’ coordinates), which can be useful for reducing skewness in data and compressing wide value ranges. The transformation uses the natural logarithm function as log(1 + x) to handle zero and positive values.
- Parameters:
dataframe (pd.DataFrame): Input DataFrame containing ‘x’, ‘y’, and feature columns.
- Attributes:
df (pd.DataFrame) – Original DataFrame with updated column labels.
normalizedDF (pd.DataFrame) – DataFrame after applying log transformation.
startTime, endTime (float) – Timestamps used for runtime measurement.
memoryUSS, memoryRSS (float) – Memory usage statistics (USS and RSS) in kilobytes.
Execution methods
Calling from a Python program
import pandas as pd from geoanalytics.normalization import LogTransformation df = pd.read_csv("input.csv") transformer = LogTransformation(df) normalized_df = transformer.run() transformer.getRuntime() transformer.getMemoryUSS() transformer.getMemoryRSS() transformer.save("LogTransformation.csv")
Credits
This implementation was created by Raashika and revised by M. Charan Teja under the guidance of Professor Rage Uday Kiran.