随笔分类 -  知识图谱实验

1
摘要:实验2-正向最大匹配-checkpoint.ipynb 实验3-3-正向最大匹配-checkpoint.ipynb 阅读全文
posted @ 2024-06-05 21:50 lcz111 阅读(5) 评论(0) 推荐(0) 编辑
摘要:changeface.py import cv2 import dlib import numpy import sys PREDICTOR_PATH = "./shape_predictor_68_face_landmarks.dat" SCALE_FACTOR = 1 FEATHER_AMOUN 阅读全文
posted @ 2024-06-05 21:48 lcz111 阅读(12) 评论(0) 推荐(0) 编辑
摘要:wavs_to_model.py import wave import numpy as np import os import keras from keras.models import Sequential from keras.layers import Dense num_class = 阅读全文
posted @ 2024-06-05 21:44 lcz111 阅读(25) 评论(0) 推荐(0) 编辑
摘要:image_object_detection.py import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from PIL import Image import label_map_util impor 阅读全文
posted @ 2024-06-05 21:28 lcz111 阅读(9) 评论(0) 推荐(0) 编辑
摘要:from __future__ import print_function, division from keras.datasets import mnist from keras.layers import Input, Dense, Reshape, Flatten, Dropout from 阅读全文
posted @ 2024-06-05 21:23 lcz111 阅读(19) 评论(0) 推荐(0) 编辑
摘要:model.py # -*-coding:utf-8-*- """author: Zhou Chen datetime: 2019/6/25 9:10 desc: 实现模型 """ from keras.models import Model from keras.layers import Con 阅读全文
posted @ 2024-06-05 21:15 lcz111 阅读(17) 评论(0) 推荐(0) 编辑
摘要:实验14-1使用cnn完成MNIST手写体识别(tf).py import tensorflow as tf # Tensorflow提供了一个类来处理MNIST数据 from tensorflow.examples.tutorials.mnist import input_data import 阅读全文
posted @ 2024-06-05 20:54 lcz111 阅读(27) 评论(0) 推荐(0) 编辑
摘要:运行结果 阅读全文
posted @ 2024-06-05 20:45 lcz111 阅读(7) 评论(0) 推荐(0) 编辑
摘要:出现 TypeError: __init__() got an unexpected keyword argument 'size' size修改为vector_size 修改前 修改后 阅读全文
posted @ 2024-05-24 22:32 lcz111 阅读(10) 评论(0) 推荐(0) 编辑
摘要:出现 UnicodeDecodeError: 'gbk' codec can't decode byte 0x9f in position 16: illegal multibyte sequence 修改为 即可 实验结果: 阅读全文
posted @ 2024-05-24 21:23 lcz111 阅读(4) 评论(0) 推荐(0) 编辑
摘要:win10 python3.7 tensorflow-gpu2.6.0 keras2.6.0 出现 ValueError: Asked to retrieve element 0, but the Sequence has length 0 原因:老师给的代码中标红的文件夹下没有所需文件或缺失 解决 阅读全文
posted @ 2024-05-14 22:21 lcz111 阅读(104) 评论(0) 推荐(0) 编辑
摘要:VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: import numpy as np from keras.models import Sequential from keras.layers import 阅读全文
posted @ 2024-05-14 22:00 lcz111 阅读(5) 评论(0) 推荐(0) 编辑
摘要:VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: import numpy as np np.random.seed(1337) from keras.models import Sequential fro 阅读全文
posted @ 2024-05-14 21:59 lcz111 阅读(6) 评论(0) 推荐(0) 编辑
摘要:VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: 实验8-1tensorboard可视化 import tensorflow as tf #定义命名空间 with tf.name_scope('input') 阅读全文
posted @ 2024-05-14 21:57 lcz111 阅读(12) 评论(0) 推荐(0) 编辑
摘要:VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import numpy as np import tens 阅读全文
posted @ 2024-05-14 21:53 lcz111 阅读(13) 评论(0) 推荐(0) 编辑
摘要:VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: %matplotlib inline import numpy as np import tensorflow as tf import matplotlib 阅读全文
posted @ 2024-05-14 21:49 lcz111 阅读(8) 评论(0) 推荐(0) 编辑
摘要:VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: from sklearn.model_selection import train_test_split,cross_val_score,cross_vali 阅读全文
posted @ 2024-05-14 21:46 lcz111 阅读(18) 评论(0) 推荐(0) 编辑
摘要:VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: 实验3-1标准化 from sklearn.preprocessing import StandardScaler from sklearn.preproce 阅读全文
posted @ 2024-05-14 21:44 lcz111 阅读(5) 评论(0) 推荐(0) 编辑
摘要:VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: from sklearn import datasets import matplotlib.pyplot as plt import numpy as np 阅读全文
posted @ 2024-05-14 21:40 lcz111 阅读(28) 评论(0) 推荐(0) 编辑
摘要:VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图 代码: from sklearn.linear_model import LinearRegression, SGDRegressor, Ridge, Logistic 阅读全文
posted @ 2024-05-14 21:30 lcz111 阅读(22) 评论(0) 推荐(0) 编辑

1
点击右上角即可分享
微信分享提示