コード例 #1
0
    def __init__(self, id_path, con_path, char_type):

        self.file_io = FileIO()
        self.encode = CategoryEncode()
        self.count_rec = CountRecord()
        self.extract_col = ExtractColumns()
        self.bin = Binning()
        self.ss = Scaler()
        # ファイルオープン
        self.id = self.file_io.open_file_as_pandas(id_path, char_type)
        self.con = self.file_io.open_file_as_pandas(con_path, char_type)
コード例 #2
0
ファイル: concat_csvs.py プロジェクト: Logtre/Xscore
    def __init__(
        self,
        id_path,
        cust_payment_path,
        cust_attr_path,
        target_attr_path,
        average_attr_path,
        cust_path,
        cancel_path,
        contact_path,
        cti_path,
        register_type_path,
        status_path,
        stay_time_path,
        pv_sum_path,
        session_path,
        shop_path,
        pref_path,
        char_type):

        self.file_io = FileIO()
        self.encode = CategoryEncode()
        self.count_rec = CountRecord()
        self.extract_col = ExtractColumns()
        self.bin = Binning()
        # ファイルオープン
        self.id = self.file_io.open_file_as_pandas(id_path,char_type)
        self.cust_payment = self.file_io.open_file_as_pandas(cust_payment_path, char_type)
        self.cust_attr = self.file_io.open_file_as_pandas(cust_attr_path, char_type)
        self.target_attr = self.file_io.open_file_as_pandas(target_attr_path, char_type)
        self.average_attr = self.file_io.open_file_as_pandas(average_attr_path, char_type)
        self.cust = self.file_io.open_file_as_pandas(cust_path, char_type)
        self.cancel = self.file_io.open_file_as_pandas(cancel_path, char_type)
        self.contact = self.file_io.open_file_as_pandas(contact_path, char_type)
        self.cti = self.file_io.open_file_as_pandas(cti_path, char_type)
        self.register_type = self.file_io.open_file_as_pandas(register_type_path, char_type)
        self.status = self.file_io.open_file_as_pandas(status_path, char_type)
        self.stay_time = self.file_io.open_file_as_pandas(stay_time_path, char_type)
        self.pv_sum = self.file_io.open_file_as_pandas(pv_sum_path, char_type)
        self.session = self.file_io.open_file_as_pandas(session_path, char_type)
        self.shop = self.file_io.open_file_as_pandas(shop_path, char_type)
        self.pref = self.file_io.open_file_as_pandas(pref_path, char_type)