¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

Data Pre-processing

Freda Fung Graduate Diploma in Computing Graduate diploma Inglés

Data Pre-processing

Contenido del mapa

Data Pre-processing

  1. Knowledge Discovery Flow

    • Data preperation/pre-processing estimated take 70-80% of the time and effort
  2. Data Quality Measure

    • Accuracy
    • Completeness
    • Consistency
    • Timeliness
    • Believability
    • Value added
    • Value Added
    • Interpretability
    • Accessibility
  3. No qality data

    • Incomplete
      • missing attribute values, missing certain attributes of interest, containing only aggregate data
    • Noisy
      • Filled with errors or outliers
    • Inconsistent
      • Containing discrepancies in codes, names or values
  4. Main Task

    • Data Cleaning
      • Fill in missing values
        • Missing Data
          • May due to: Equipment malfunction​Inconsistent with other recorded data and thus deleted​Data not entered due to misunderstanding​Certain data may not be considered important at the time of entry​Not registered in history or changes of the dat
          • Ignore
            • Especially when the class label is missing – e.g. remove fr dataset.​ Bad! If there are many instances with missing values(it may mean sth)​ If dataset is big, ok, remove it, if it is small, you have to live with it.​
          • Fill in value manully
            • Fill in with attribute mean
              • Use the attribute mean to fill in every missing value for that attribute –become noise
            • Bayesian formula or decision tree
              • Use Bayesian formula or decision tree to know what is the most probable value to fill in the missing value = downside: problem of biasing.​
              • Use different models
                • Solution: use different model.  e.g. Naiive bay is what the model is using, then use other e.g. J48 for prediction
          • Expectation Maximization
            • Build model of the data (ignoring missing values)​ Use the model to estimate missing values​ Build new models of data values (including the estimated values)​ Use new models to re-estimate missing values​ Repeats until convergence (old model = new model)​
      • Smooth noisy data
        • data still w/n normal range, but actually wrong value.  
        • Incorrect attribute values may be due to​Faulty data collection instruments​Data entry problems​Data transmission problems​Technology limitation​Inconsistency in naming conventions ​
        • Binning Method
          • Sort data and partition into (equal-depth) bins​ Sort data, partition them, and to arrange them into different bins, calculate frequency of each bin.
          • Smooth by bin means,  smooth by bin median, smooth by bin boundaries, etc.​ Change all value to 1 value (e.g. mean/ median/ boundaries) ​ Boundaries = find the mean of the group of data, data below the mean  change to the minimum no, above change to the max no within the group.​
          • Equal-width (distance) partitioning
            • divide the range into N intervals of equal size: for N bins, the width of each interval will be W = (maxValue - minValue)/N
            • Straightforward but outliers may dominate presentation - worst for skewed data.
          • Equal - depth (frequency) partitioning
            • Divide the range into N intervals so that each interval contains approximate the same number of samples (the interval doesn't need to have the same width) - good data scaling
        • Clustering
          • Detect & remove outliers
          • Remove data that does not belong to any group
        • Combined Computer & Human Inspection
          • Detect suspicious values & check by human - Handle inconsistent data
          • Semi-automatic​ Detect violation of known functional dependencies and data constraints​ E.g. use dictionary or grammar rules​ Correct redundant data​ Use correlational analysis or similarity measures to detect redundant data
        • Soothing
          • Partition into (equi-dept) bins
          • Smoothing by bin means
            • change all values in a bin to the mean of the bin
          • Smoothing by bin boundries
            • val <mean (bin) --> minVal(bin) val > mean(bin) --> manVal(bin)
          • Regression
            • Smooth al the values according to the best line fit smooth by fitting the data into regression functions
      • Identify or remove outliers
        • outliers = sth outside the range - define the normal range first e.g. mean & SD
      • Resolve inconsistencies
      • Remove duplicate re ords
    • Data integration
      • Combines data from multiple sources into a coherent store​ Integrate metadata from different sources​
      • Possible problems​ The same attribute may have different names in different data sources, e.g. CustID and CustomerNo​ One attribute may be a “derived” attribute in another table, e.g. annual revenue​ Different representation and scales, e.g. metric vs. British units, different currency, different timezone​
    • Data Reduction
      • Complex data analysis may take a very long time to run on the complete data set​ Obtain a reduced representation of the data set that is much smaller in volume but produces (almost) the same analytical results​
      • Strategy
        • Dimensionality reduction
          • Feature Selection
            • Select a minimum set of features so that the probability distribution of different classes given the values for those features is as close as possible to the original distribution given the values of all feature
            • Reduce the number of attributes in the discovered patterns​ Makes the patterns easier to understand​
            • Ways to select attributes include​ Decision Tree induction (information gain and gain ratio)​ Principal Component Analysis (in 2 weeks time)​
            • Generally, keep top 50 attributes ** assignment: top 10.​
            • Ways
              • Decision Tree
              • Principal Component Analysis
            • Approach
              • Wrapper approach
                • (find the best attributes for the chosen classifier)​ Try all possible combinations of feature subsets​ Train on train set, evaluate on a validation set (or use cross-validation)​ Use set of features that performs best on the validation set​ Algorithm dependent​
              • Proxy method
                • Determine what features are important or not without knowing/using what learning algorithm will be employed​ Information gain, Gain ratio, Cosine similarity, etc.​Algorithm independent & Fast but may not suitable for all algorithms​
          • Sampling
            • Choose a representative subset of the data​ Simple random sampling may have very poor performance in the presence of skew​
            • Develop adaptive (stratified) sampling methods​ Approximate the percentage of each class​ Sample the data so that the class distribution stays the same after sampling​
        • Data Compression
        • Discretization
          • Divide the range of a continuous attributes into intervals​ Interval labels can then be used to replace actual data values​
          • Normal Converting Numeric to Ordinal Converting Ordinal to Numeric
          • Binning Methods
          • Use info gain/gain ratio to find the best splitting points
          • Clustering analysis
        • Concept hierarchy generalization
          • Replace low level concepts by higher level concepts​ E.g. Age: 15, 65, 3 to Age: teen, senior, child, middle-aged, etc​ Instead of street, use city or state or country for the geographical locatio
      • Quantity
        • Generally​ 5000 or more number of instances are desired​ If less, results are less reliable. Might need to use special methods like boosting​ There are at least 10 or more instances for each unique attribute value​ 100 more instances for each class label​
        • stratified sampling
          • If unbalanced, use stratified sampling ​ Stratified sampling = u have the same number of instances per class label, not look at distribution​
        • Random Sampling
          • sample as they come
    • Data Transformation
      • Sometimes it is better to convert nominal to numeric attributes​ So you can use mathematical comparisons on the fields​ E.g. instead of cold, warm, hot ->  -5, 25, 33​ Or A -> 85, A- -> 80, B+ -> 75, B ->70​
      • Normalization
      • Aggregation

Imágenes y archivos del mapa

  • Data Pre-processing
  • Data Pre-processing
  • Data Pre-processing
  • Data Pre-processing

Información

Descripción
Graduate diploma (Data Mining) Graduate Diploma in Computing Mapa Mental sobre Data Pre-processing, creado por Freda Fung el 13/09/2016.
Creado por
Freda Fung
Visitas
4
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?