class_docstr: This table's columns are text columns representing JSON data of how
  to extract the train and test datasets, base learner cross-validation method,
  and the stacked ensemble cross-validation method.
  It will contain only a single row.
class_docstr_tok: ["This","table","'s","columns","are","text","columns","representing","JSON","data","of","how","to","extract","the","train","and","test","datasets",",","base","learner","cross-validation","method",",","and","the","stacked","ensemble","cross-validation","method",".","It","will","contain","only","a","single","row","."]
docstr: Returns train data set
  
  Returns:
      X (numpy.ndarray): Features
  
      y (numpy.ndarray): Labels
docstr_tok: ["Returns","train","data","set","Returns",":","X","(","numpy.ndarray",")",":","Features","y","(","numpy.ndarray",")",":","Labels"]
code: def return_train_dataset(self):
      """Returns train data set
  
      Returns:
          X (numpy.ndarray): Features
  
          y (numpy.ndarray): Labels
      """
      X, y = self.return_main_dataset()
  
      if self.test_dataset["method"] == "split_from_main":
          X, X_test, y, y_test = train_test_split(
              X,
              y,
              test_size=self.test_dataset["split_ratio"],
              random_state=self.test_dataset["split_seed"],
              stratify=y,
          )
  
      return X, y
  
imports: from __future__ import absolute_import, print_function, division, unicode_literals
  import random
  import string
  from sqlalchemy.ext.declarative import declarative_base
  from sqlalchemy import Column, Text, Integer, Boolean, TypeDecorator, ForeignKey, Table, UniqueConstraint
  from sqlalchemy.orm import relationship
  from sqlalchemy.ext import mutable
  import numpy
  import json
  import os
  from sklearn.model_selection import train_test_split
  from xcessiv import constants
  from xcessiv import exceptions
  from xcessiv import functions
  from xcessiv import app
label_desc: Use image node_id 3 for calling the Extraction obj's underlying member method code with example usage: obj.return_train_dataset() and returns: X,  y