FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Dataset class skeleton method added · feelsyt/TensorFlow.NET@b9c339c · GitHub

Commit b9c339c

Browse files
Dataset class skeleton method added
1 parent 9a1798c commit b9c339c

9 files changed

Lines changed: 26 additions & 9 deletions

File tree

‎src/TensorFlowNET.Keras/Datasets/BostonHousing.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
namespace Tensorflow.Keras.Datasets
66
{
7-
class BostonHousing
7+
public class BostonHousing
88
{
9+
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data(string path = "boston_housing.npz", float test_split = 0.2f, int seed = 113) => throw new NotImplementedException();
910
}
1011
}

‎src/TensorFlowNET.Keras/Datasets/Cifar.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
namespace Tensorflow.Keras.Datasets
66
{
7-
class Cifar100
7+
public class Cifar
88
{
9+
public (Tensor, Tensor) load_batch(string fpath, string label_key = "labels") => throw new NotImplementedException();
910
}
1011
}

‎src/TensorFlowNET.Keras/Datasets/Cifar10.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
namespace Tensorflow.Keras.Datasets
66
{
7-
class Cifar10
7+
public class Cifar10
88
{
9+
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data() => throw new NotImplementedException();
910
}
1011
}

‎src/TensorFlowNET.Keras/Datasets/Cifar100.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
namespace Tensorflow.Keras.Datasets
66
{
7-
class Cifar
7+
public class Cifar100
88
{
9+
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data(string label_mode = "fine") => throw new NotImplementedException();
910
}
1011
}

‎src/TensorFlowNET.Keras/Datasets/FashionMNIST.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
namespace Tensorflow.Keras.Datasets
66
{
7-
class FashionMNIST
7+
public class FashionMNIST
88
{
9+
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data() => throw new NotImplementedException();
910
}
1011
}
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
using System;
1+
using Newtonsoft.Json.Linq;
2+
using System;
23
using System.Collections.Generic;
34
using System.Text;
45

56
namespace Tensorflow.Keras.Datasets
67
{
7-
class IMDB
8+
public class IMDB
89
{
10+
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data(string path= "imdb.npz", int? num_words= null, int skip_top= 0, int? maxlen= null,
11+
int seed= 113,int start_char= 1, int oov_char= 2, int index_from= 3) => throw new NotImplementedException();
12+
13+
public static JObject get_word_index(string path= "imdb_word_index.json") => throw new NotImplementedException();
914
}
1015
}

‎src/TensorFlowNET.Keras/Datasets/MNIST.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
namespace Tensorflow.Keras.Datasets
66
{
7-
class MNIST
7+
public class MNIST
88
{
9+
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data(string path = "mnist.npz") => throw new NotImplementedException();
910
}
1011
}

‎src/TensorFlowNET.Keras/Datasets/Reuters.cs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
namespace Tensorflow.Keras.Datasets
66
{
7-
class Reuters
7+
public class Reuters
88
{
9+
public static ((Tensor, Tensor), (Tensor, Tensor)) load_data(string path = "reuters.npz", int? num_words= null, int skip_top= 0,
10+
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();
911
}
1012
}

‎src/TensorFlowNET.Keras/Tensorflow.Keras.csproj‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<RootNamespace>Tensorflow.Keras</RootNamespace>
77
</PropertyGroup>
88

9+
<ItemGroup>
10+
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
11+
</ItemGroup>
12+
913
<ItemGroup>
1014
<ProjectReference Include="..\TensorFlowNET.Core\TensorFlow.Binding.csproj" />
1115
</ItemGroup>

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL