Пример #1
0
 /// <summary>
 /// Obtains all instances available in the ARFF file asynchronously
 /// </summary>
 /// <returns>An enumeration of all <see cref="Instance"/> elements</returns>
 public override async Task <IEnumerable <Instance> > DeserializeInstancesAsync()
 {
     if (await ReadFromPathAsync())
     {
         using ARFFReader reader = new ARFFReader(Content);
         return(reader.ReadAllInstances());
     }
     else
     {
         return(new Instance[0]);
     }
 }
Пример #2
0
 /// <summary>
 /// Obtains all instances available in the ARFF file
 /// </summary>
 /// <returns>An enumeration of all <see cref="Instance"/> elements</returns>
 public override IEnumerable <Instance> DeserializeInstances()
 {
     if (ReadFromPath())
     {
         using ARFFReader reader = new ARFFReader(Content);
         return(reader.ReadAllInstances());
     }
     else
     {
         return(new Instance[0]);
     }
 }