Skip to content
View matrix303's full-sized avatar

Highlights

  • Pro

Block or report matrix303

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Feature Ranking #python #DataScience Feature Ranking #python #DataScience
    1
    TOP_FEATURES = len(feature_list)
    2
    
    
    3
    forest = RandomForestClassifier(n_estimators=10,max_depth=6)#, random_state=3)
    4
    forest.fit(l_mat[1],l_label[1])
    5
    
    
  2. Data Ingestion #python #DataScience Data Ingestion #python #DataScience
    1
    def get_data_lists(selected_col=[], indvGroupOnly=False):
    2
    
    
    3
      	# Data input
    4
        xls = pd.ExcelFile("final_data_NMR_DILC_comb.xlsx")
    5
        day1_org = pd.read_excel(xls,"Day1")
  3. Get all Tags Anki Get all Tags Anki
    1
    # WRITE CODE BLOCK IN DEBUG CONSOLE (cmd shift D in anki main window)
    2
    # RUN CODE w Cmd Return
    3
    
    
    4
    #GET ALL TAGS
    5
    from aqt import mw
  4. Boruta and Classification #python #D... Boruta and Classification #python #DataScience
    1
    feat_true, feat_top_rank = boruta_MP(l_mat,l_label,l_title,l_features,nest='auto',top_rank=5)
    2
    
    
    3
    # TRUE Feat 
    4
    
    
    5
    l_cv = 3,5,6,7
  5. Profiling Python File RunTime #pytho... Profiling Python File RunTime #pythonTips
    1
    c_profiler -> gives times of functions
    2
    line_profiler -> gives  times of line by lie
    3
    
    
    4
    #@profile -> needed for linebyline
    5
    def func():
  6. SSH Commands #Shell SSH Commands #Shell
    1
    **General File/Directory Commands**
    2
    rm _fileName_  ->  remove file
    3
    rm -rf _dirName_ -> remove folder