text: #####################################################################
  # ADOBE CONFIDENTIAL
  # ___________________
  #
  #  Copyright 2019 Adobe
  #  All Rights Reserved.
  #
  # NOTICE:  All information contained herein is, and remains
  # the property of Adobe and its suppliers, if any. The intellectual
  # and technical concepts contained herein are proprietary to Adobe
  # and its suppliers and are protected by all applicable intellectual
  # property laws, including trade secret and copyright laws.
  # Dissemination of this information or reproduction of this material
  # is strictly forbidden unless prior written permission is obtained
  # from Adobe.
  #####################################################################
  
  from pyspark.sql.functions import col, lit
  from sdk.evaluation.regression import RegressionEvaluator
  
  class Evaluator(RegressionEvaluator):
  
      def __init__(self):
          print("Initiate")
  
      def split(self, config_properties, dataframe):
          # Order by date and split the data
          df = dataframe.orderBy("date").withColumn("date", col("date").cast("String"))
          train = df.filter(df["date"] <= lit('2012-01-27 00:00:00'))
          test = df.filter(df["date"] > lit('2012-01-27 00:00:00'))
          return train, test
  