title: System.InvalidOperationException: 'All instances skipped due to missing features.' Is the error coming from the dataset or the code?
body: <p>I'm trying to learn ML.Net and C# for a school problem, tried to find similar questions but none of them solved my problem.</p>
  <p>How can I fix this problem?</p>
  <p>Is the error coming from the dataset or the code?</p>
  <pre class="lang-cs prettyprint-override"><code>class ML_BankModel
      {
          static readonly string _dataPath = Path.Combine(Environment.CurrentDirectory, &quot;BankDataSet&quot;, &quot;Churn_Modelling.csv&quot;);
          static readonly string _modelPath = Path.Combine(Environment.CurrentDirectory, &quot;BankDataSet&quot;, &quot;Churn_Modelling.csv&quot;);
          static void Main(string[] args)
          {
              var mlContext = new MLContext();
  
              var trainData = mlContext.Data.LoadFromTextFile&lt;AccountBankModel&gt;(path: _dataPath,
                  separatorChar: ',',
                  hasHeader: true
                  );
  
              var estimator = mlContext.Transforms.Conversion.ConvertType(outputColumnName: &quot;Label&quot;, inputColumnName: &quot;Target&quot;, DataKind.Boolean)
                  .Append(mlContext.Transforms.Categorical.OneHotEncoding(outputColumnName: &quot;GeographyEncoded&quot;, inputColumnName: &quot;Geography&quot;))
                  .Append(mlContext.Transforms.Categorical.OneHotEncoding(outputColumnName: &quot;GenderEncoded&quot;, inputColumnName: &quot;Gender&quot;))
                  .Append(mlContext.BinaryClassification.Trainers.FastTree())
                  .Append(mlContext.Transforms.Conversion.ConvertType(outputColumnName: &quot;PredictedLabel&quot;, inputColumnName: &quot;Label&quot;, DataKind.Boolean));
  
              var dataPreview = trainData.Preview();
  
              var transformationPreview = estimator.Preview(trainData);
          }
  
  class AccountBankModel
      {
          [LoadColumn(2)]
          public int CustomerId { get; set; }
  
          [LoadColumn(4)]
          public float CreditScore { get; set; }
  
          [LoadColumn(5)]
          public string Geography { get; set; }
          
          [LoadColumn(6)]
          public string Gender { get; set; }
  
          [LoadColumn(7, 12), ColumnName(&quot;Features&quot;)]
          public float FeatureVector { get; set; }
  
          [LoadColumn(13)]
          public float Target { get; set; }
      }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/roK5C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/roK5C.png" alt="Error" /></a></p>
  <p><a href="https://i.stack.imgur.com/2mbd4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2mbd4.png" alt="DataSet sample" /></a></p>