Browse Source

Dataset class skeleton method added

tags/v0.20
Deepak Battini 5 years ago
parent
commit
b9c339cfaf
9 changed files with 26 additions and 9 deletions
  1. +2
    -1
      src/TensorFlowNET.Keras/Datasets/BostonHousing.cs
  2. +2
    -1
      src/TensorFlowNET.Keras/Datasets/Cifar.cs
  3. +2
    -1
      src/TensorFlowNET.Keras/Datasets/Cifar10.cs
  4. +2
    -1
      src/TensorFlowNET.Keras/Datasets/Cifar100.cs
  5. +2
    -1
      src/TensorFlowNET.Keras/Datasets/FashionMNIST.cs
  6. +7
    -2
      src/TensorFlowNET.Keras/Datasets/IMDB.cs
  7. +2
    -1
      src/TensorFlowNET.Keras/Datasets/MNIST.cs
  8. +3
    -1
      src/TensorFlowNET.Keras/Datasets/Reuters.cs
  9. +4
    -0
      src/TensorFlowNET.Keras/Tensorflow.Keras.csproj

+ 2
- 1
src/TensorFlowNET.Keras/Datasets/BostonHousing.cs View File

@@ -4,7 +4,8 @@ using System.Text;

namespace Tensorflow.Keras.Datasets
{
class BostonHousing
public class BostonHousing
{
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data(string path = "boston_housing.npz", float test_split = 0.2f, int seed = 113) => throw new NotImplementedException();
}
}

+ 2
- 1
src/TensorFlowNET.Keras/Datasets/Cifar.cs View File

@@ -4,7 +4,8 @@ using System.Text;

namespace Tensorflow.Keras.Datasets
{
class Cifar100
public class Cifar
{
public (Tensor, Tensor) load_batch(string fpath, string label_key = "labels") => throw new NotImplementedException();
}
}

+ 2
- 1
src/TensorFlowNET.Keras/Datasets/Cifar10.cs View File

@@ -4,7 +4,8 @@ using System.Text;

namespace Tensorflow.Keras.Datasets
{
class Cifar10
public class Cifar10
{
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data() => throw new NotImplementedException();
}
}

+ 2
- 1
src/TensorFlowNET.Keras/Datasets/Cifar100.cs View File

@@ -4,7 +4,8 @@ using System.Text;

namespace Tensorflow.Keras.Datasets
{
class Cifar
public class Cifar100
{
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data(string label_mode = "fine") => throw new NotImplementedException();
}
}

+ 2
- 1
src/TensorFlowNET.Keras/Datasets/FashionMNIST.cs View File

@@ -4,7 +4,8 @@ using System.Text;

namespace Tensorflow.Keras.Datasets
{
class FashionMNIST
public class FashionMNIST
{
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data() => throw new NotImplementedException();
}
}

+ 7
- 2
src/TensorFlowNET.Keras/Datasets/IMDB.cs View File

@@ -1,10 +1,15 @@
using System;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Keras.Datasets
{
class IMDB
public class IMDB
{
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data(string path= "imdb.npz", int? num_words= null, int skip_top= 0, int? maxlen= null,
int seed= 113,int start_char= 1, int oov_char= 2, int index_from= 3) => throw new NotImplementedException();

public static JObject get_word_index(string path= "imdb_word_index.json") => throw new NotImplementedException();
}
}

+ 2
- 1
src/TensorFlowNET.Keras/Datasets/MNIST.cs View File

@@ -4,7 +4,8 @@ using System.Text;

namespace Tensorflow.Keras.Datasets
{
class MNIST
public class MNIST
{
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data(string path = "mnist.npz") => throw new NotImplementedException();
}
}

+ 3
- 1
src/TensorFlowNET.Keras/Datasets/Reuters.cs View File

@@ -4,7 +4,9 @@ using System.Text;

namespace Tensorflow.Keras.Datasets
{
class Reuters
public class Reuters
{
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data(string path = "reuters.npz", int? num_words= null, int skip_top= 0,
int? maxlen= null,float test_split= 0.2f, int seed= 113,int start_char= 1,int oov_char= 2,int index_from= 3) => throw new NotImplementedException();
}
}

+ 4
- 0
src/TensorFlowNET.Keras/Tensorflow.Keras.csproj View File

@@ -6,6 +6,10 @@
<RootNamespace>Tensorflow.Keras</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\TensorFlowNET.Core\TensorFlow.Binding.csproj" />
</ItemGroup>


Loading…
Cancel
Save