title: Invalid Parameters Passed
body: <p>Still on my GAN code for network traffic generation. My code is giving me the error that the parameters i passed for the train_test_split function is invalid. What do I do? Please see the code and error message below;</p>
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-50-a2836ba27bc4&gt; in &lt;module&gt;
        9     cross_validation_flg = False
       10     benign_file = '../data/attack_normal_data/benign_data.csv'
  ---&gt; 11     benign_model, benign_test_loader = run_main(benign_file, num_features=41)
       12     # Save the model checkpoint
       13     torch.save(benign_model.state_dict(), 'benign_model_epoches%d.ckpt' % num_epochs)
  
  &lt;ipython-input-44-0a86075f4966&gt; in run_main(input_file, num_features)
        6 
        7     # X_train, X_test, y_train, y_test = train_test_split(value_x, value_y, train_size=0.7, 
  shuffle=True)
  ----&gt; 8     train_sampler, test_sampler = train_test_split(dataset, split_percent=0.7, shuffle=True)
        9     cntr = Counter(dataset.y)
       10     print('dataset: ', len(dataset), ' y:', sorted(cntr.items()))
  
  ~\anaconda3\lib\site-packages\sklearn\model_selection\_split.py in train_test_split(*arrays, 
  **options)
     2123 
     2124     if options:
  -&gt; 2125         raise TypeError(&quot;Invalid parameters passed: %s&quot; % str(options))
     2126 
     2127     arrays = indexable(*arrays)
  
  TypeError: Invalid parameters passed: {'split_percent': 0.7}
  </code></pre>