This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.base import BaseEstimator | |
import numpy as np | |
class OrdClass(BaseEstimator): | |
""" | |
Helper class that solves ordinal classification (classes that have an order to them eg cold,warm,hot) | |
Paper (2001): https://www.cs.waikato.ac.nz/~eibe/pubs/ordinal_tech_report.pdf | |
Fixed source from: https://github.com/garyongguanjie/Ordinal-Classifier | |
""" | |
def __init__(self,classifier=None,clf_args=None): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function merge_ics($token, ...$ics_urls) { | |
/** | |
* Merge list of ICS files to one ICS file. Use ICS header from first ICS file. | |
* Download ICS file from remote server with *file_get_contents* | |
*/ | |
$ical_list = ""; | |
foreach($ics_urls as $key => $ics_file) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import pandas as pd | |
import sys, getopt | |
def main(argv): | |
""" | |
Convert any csv file to parquet file with pandas library. | |
Requirments: |