Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#,Accord,FileNotFound尝试下载MNIST时出现异常_C#_Mnist_Accord.net - Fatal编程技术网

C#,Accord,FileNotFound尝试下载MNIST时出现异常

C#,Accord,FileNotFound尝试下载MNIST时出现异常,c#,mnist,accord.net,C#,Mnist,Accord.net,快速提问 我想将MNIST数据集下载到我的C#项目中 在这里,您可以阅读: Downloads and prepares the MNIST dataset. public MNIST( string path = null ) Parameters path (Optional) Type: System.String The path where datasets will be stored. If null or empty, the dataset will be

快速提问

我想将MNIST数据集下载到我的C#项目中

在这里,您可以阅读:

Downloads and prepares the MNIST dataset.

public MNIST(
string path = null
)

Parameters
path (Optional)
Type: System.String
    The path where datasets will be stored. If null or empty, the dataset 
    will be saved on a subfolder called "data" in the current working directory.
我认为,这会很容易,因此根据(感受笑话)文档,我进入C程序并编写以下内容:

using System;
using Accord.DataSets;
using System.IO;

namespace ML.NET_Mnist
{
    class Program
    {
        static void Main(string[] args)
        {
            MNIST dataset = new MNIST();         
        }
    }
}
作为输出,我得到以下结果:

System.IO.FileNotFoundException:'无法加载文件或程序集'SharpZipLib.NETStandard,版本=0.86.0.1,区域性=中性,PublicKeyToken=null'

我在Google或StackOverflow中找不到任何解决方案,所以我问你,你知道如何下载MNIST数据集并使用C#程序处理它吗?Accord way看起来很简单,但你认为它对我来说不起作用


有名为的方法,但MNIST数据集的URL正确吗?

我找到了解决方案,
sharpiplib
不受
NET Core
的支持,因此如果要在项目中使用
accore.dataset
,则需要使用
.NETFramework
而不是
Core
(我谈论控制台应用程序)因为该名称空间适用于
SharpZipLib

您安装了吗?@jsanalytics我首先在
1,0版
中安装了SharpZipLip,同样的错误。降级到版本
0.86
,仍然是相同的异常。我认为这是协议框架中的一个缺陷。他们没有在一年前更新它,github上的问题已经过时了。我想。我认为作家们对这本书失去了兴趣Accord@jsanalytics看看我的回答太棒了,…+1。