-
VB对文本文件操作实例
VB对文本文件操作实例-VB to the text file manipulation case
- 2022-03-13 20:41:14下载
- 积分:1
-
查看C++文件中的函数的工具,计算各个函数的实际代码行数,注释行数等等....
查看C++文件中的函数的工具,计算各个函数的实际代码行数,注释行数等等.-View C document, the function of the tool to calculate the actual function of each source line number, a few notes, and so on.
- 2022-01-26 07:27:26下载
- 积分:1
-
原始数据划分为train.dat和test.dat
应用背景开始是做movielense的数据,可以把原始数据任意划分为train.dat和test.dat,主要是为了做验证实验。非常简单明了,适合初学者看看,如果不喜欢,请轻喷。关键技术# -*- coding: cp936 -*-
from sklearn import cross_validation
c = []
filename = r"Raw.data" #原始数据
out_train = open(r"train.txt","w") #训练集
out_test = open(r"test.txt","w") #测试集
for line in open(filename):
items = line.strip().split(",")
c.append(items)
c_train,c_test = cross_validation.train_test_split(c,test_size=0.1)#size =你需要的比例
for i in c_train:
out_train.write(",".join(i)+"
")
for i in c_test:
out_test.write(",".join(i)+"
")
- 2022-01-25 21:21:56下载
- 积分:1
-
用VC操作文件的一些代码,包括存入,读取数据到文件中
用VC操作文件的一些代码,包括存入,读取数据到文件中-some code which operate file in VC
- 2022-07-02 14:25:32下载
- 积分:1
-
document for Byte Swap
Swap Byte for document -document for Byte Swap
- 2022-02-25 06:04:58下载
- 积分:1
-
~Eliminating Explorer s delay when deleting an in
~Eliminating Explorer s delay when deleting an in-use file
- 2023-06-24 23:30:03下载
- 积分:1
-
file cuts,siplest come true.
文件分割 最简单的实现-file cuts,siplest come true.
- 2022-03-22 12:05:39下载
- 积分:1
-
see proces a
see proces a-see proces allllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
- 2023-03-24 03:30:04下载
- 积分:1
-
一个读写INI配置文件的类CConfig,其中完整封装了对INI各种读写的操作,具体例子参考一段源代码Example.cpp。...
一个读写INI配置文件的类CConfig,其中完整封装了对INI各种读写的操作,具体例子参考一段源代码Example.cpp。-a reader INI configuration file class CConfig, Packaging integrity of the various literacy INI, the operation of a reference to specific examples of source code Example.cpp.
- 2022-01-31 03:06:10下载
- 积分:1
-
大家经常需要对指定目录下的所有文件进行搜索或其它相同操作。若文件数很多,逐一对每个文件手工操作,很费时。这里提供一个搜索或处理指定目录下的所有文件的C++类。作...
大家经常需要对指定目录下的所有文件进行搜索或其它相同操作。若文件数很多,逐一对每个文件手工操作,很费时。这里提供一个搜索或处理指定目录下的所有文件的C++类。作者用基于层次遍历的非递归算法(以减少运行时的时间和空间开销)实现了一个 CFileFind 的扩展类 CFileFindExt,该类可以对指定目录下的所有文件进行搜索或相同的处理操作。-designated directories on the search for all documents or other similar operations. If the document number many, one by one for each document manually, a very time-consuming. Search here for a designated directory or processing of all documents under the C category. Based on the author traverse the level of non- recursive algorithm (to reduce the running time and space costs) achieved a CFileFind CFileFindExt the extension of the class, such right can be specified directory of all documents or search for the same handling operations.
- 2023-06-07 21:20:03下载
- 积分:1