自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 关于在沙雕unity中,以代码创建sprite

string sprite_path = "img/无标题"; //Application.dataPath + Debug.Log(sprite_path); Texture2D texture = Resources.Load(sprite_path) as Texture2D; SpriteRenderer spriteRendere...

2018-08-24 09:48:19 2256 1

原创 关于在Spark中的DataFrame,字段为Array类型,getas出错的问题

打开getas的源码,找到下面一段/** * Returns the value at position i of array type as a Scala Seq. * * @throws ClassCastException when data type does not match. */ def getSeq[T](i: Int): Seq[T] = getA...

2018-06-19 16:34:03 5053 2

转载 安装keras的seq2seq包

依旧是farizrahman4u大神写的包。安装seq2seq包,需要依赖大神的recurrentshop包。地址给出如下:https://github.com/farizrahman4u/seq2seqhttps://github.com/farizrahman4u/recurrentshop...

2018-05-17 11:31:37 2776 11

原创 Anaconda安装keras-gpu的过程以及遇到的各种问题。

主要是参考了这篇文章。点击打开链接A、沙雕pip又不行了办法:pip uninstall setuptools pip install setuptools==19.2B、Could not find 'cudart64_90.dll'. TensorFlow requires that this DLL be installed in a directory that is named in y...

2018-05-16 15:59:06 2506

转载 关于pip老不行的问题

辣鸡pip。搜索了一下,问题可能是:A、pip版本太老 B、setuptools版本太高本机上的问题是B。pip uninstall setuptools pip install setuptools==19.2看别人的文章,一脸懵逼的用了19.2版本的。有用,海星。然后,pip install git+https://www.github.com/farizrahman4u/keras-cont...

2018-05-14 10:48:57 668

转载 mybatis遇到的问题

val resource = "Java函数库测试/mybatis-config.xml" val inputStream: InputStream = Resources.getResourceAsStream(resource) val sqlSessionFactory: SqlSessionFactory = new SqlSessionFactoryBuilder().b...

2018-04-09 09:42:34 135

原创 操作辣鸡Linux的一连串指令

先创建.sh文件,例如:zip -d xxx.jar META-INF/*.RSA META-INF/*.DSA META-INF/*.SF nohup spark-submit --driver-memory 8G --class the_class xxx.jar >> /home/spark/logs/xxx.log 2>&1 & 然后,运行这个.sh文件s...

2018-03-26 17:28:55 245

原创 gensim的word2vec使用

在生成word2vec模型后,还要想办法把模型塞进embed层来使用。model.wv.save_word2vec_format(u"./data_path/model")nparray的读写:npy_path=u"data_path/sample.npy" a=numpy.array(range(0,16)).reshape((2,2,-1),order='F') print(a) numpy....

2018-03-21 14:45:12 367

原创 关于spark的vectors在ml和mllib中转化的办法

遇到恶心的问题,这两个类下的vectors不能隐饰转换。参考https://stackoverflow.com/questions/40109807/classcastexception-org-apache-spark-ml-linalg-densevector-cannot-be-cast-to-orgval denseVector = r.getAs[org.apache.spark.ml....

2018-03-09 16:29:57 6831

原创 anaconda在win10下安装pytorch

记载一下最后成功使用的方法就好了:# for CPU only packages conda install -c peterjc123 pytorch-cpu # for Windows 10 and Windows Server 2016, CUDA 8 conda install -c peterjc123 pytorch # for Windows 10 and Windows Ser...

2018-02-26 11:41:29 2565

原创 navicat用查询来导入*.sql文件

emmmmmmmmm,大概是个非常蠢的办法。不过sql文件老是报错,那就只能试试了。*关于Mysql的mysql lost connection to server during query的问题,还在解决中。1、先尝试一下修改hosts的办法。——好,试过不行2、试一下改my.ini。这个破玩意,位置是在mysql安装时选择的data所在位置。加个max_allowed_packet = 500...

2018-02-23 11:35:11 1033

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除