All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.expleague.ml.meta.impl.PoolFeatureMetaImpl Maven / Gradle / Ivy

package com.expleague.ml.meta.impl;

import com.expleague.ml.data.set.DataSet;
import com.expleague.ml.meta.FeatureMeta;
import com.expleague.ml.meta.PoolFeatureMeta;

/**
 * User: solar
 * Date: 01.06.15
 * Time: 17:32
 */
public class PoolFeatureMetaImpl implements PoolFeatureMeta {
  private final DataSet owner;
  private final FeatureMeta delegate;

  public PoolFeatureMetaImpl(DataSet owner, FeatureMeta delegate) {
    this.owner = owner;
    this.delegate = delegate;
  }

  @Override
  public DataSet associated() {
    return owner;
  }

  @Override
  public String id() {
    return delegate.id();
  }

  @Override
  public String description() {
    return delegate.description() + " @" + owner.meta().id();
  }

  @Override
  public ValueType type() {
    return delegate.type();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy