Loading training and testing sets

    0

    0

    deep learning

    def readucr(filename):
      data = np.loadtxt(filename, delimiter=",")
      y = data[:, 0]
      x = data[:, 1:]
      return x, y.astype(int)
    
    
    
    x_train, y_train = readucr("EDXRF_HC_TRAINING.csv")
    x_test, y_test = readucr("EDXRF_HC_TESTING.csv")
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.