dataset对象没有被创建,请帮助我

bkhjykvo  于 2021-08-20  发布在  Java
关注(0)|答案(0)|浏览(163)

关闭。这个问题需要详细或明确。它目前不接受答案。
**想改进这个问题吗?**编辑这篇文章,添加细节并澄清问题。

22小时前关门。
改进这个问题
这些都是错误

class education extends Thread
{
public void run()
{
    String filename="Educational_loan.txt";
    String path_Training_DataSet="C:/Users/Soumy/OneDrive/Documents/thread/src/Datasets/"+filename;
    String path_Attribute_Information="C:/Users/Soumy/OneDrive/Documents/thread/src/Datasets/Attribute_information.data";
    String dlimiter=",";
    Dataset training_DataSet= new Dataset(path_Training_DataSet,dlimiter,path_Attribute_Information,dlimiter,"training");
    //String path_Test_DataSet="C:/Users/Soumy/OneDrive/Documents/thread/src/Datasets/"+filename;
    //Dataset test_DataSet= new Dataset(path_Test_DataSet,dlimiter,path_Attribute_Information,dlimiter,"test");
}
}

 public static void main(String args[])
{
    long start=System.currentTimeMillis();
    try
    {
  filename="Educational_loan.txt";
      path_Training_DataSet="C:/Users/Soumy/OneDrive/Documents/thread/src/Datasets/"+filename;
    //String path_Attribute_Information="C:/Users/Soumy/OneDrive/Documents/thread/src/Datasets/Attribute_information3.data";
    //String dlimiter=",";
    Dataset Educational_loan_DataSet= new Dataset(path_Training_DataSet,dlimiter,path_Attribute_Information,dlimiter,"training");
    //String path_Test_DataSet="C:/Users/Soumy/OneDrive/Documents/thread/src/Datasets/"+filename;
    //Dataset test_DataSet= new Dataset(path_Test_DataSet,dlimiter,path_Attribute_Information,dlimiter,"test");

education t3=new education();
t3.start();
t3.join();
 }
    catch(Exception e)
    {
        System.out.println("Exception happened");
    }

    long end=System.currentTimeMillis();
    System.out.println("Required time="+(end-start));
  }

 }

上面的代码中没有创建数据集,该怎么办?帮帮我!我只粘贴了5个类中的一个类,我有一个名为dataset的文件,其中所有必要的代码都是writenErrors!
这是我在编译时遇到的错误,因为它无法生成数据集文件。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题