摘要: -- coding: utf-8 -- """ Created on Thu Nov 13 23:49:06 2025 @author: cxy-fairytale """ import torch import torch.nn as nn import torch.optim as optim 阅读全文
posted @ 2025-11-13 23:50 鳞* 阅读(0) 评论(0) 推荐(0)
摘要: CIFAR-10图像分类实验报告 一、实验目的 掌握深度学习图像分类的基本流程 学习使用CNN网络处理CIFAR-10数据集 掌握模型训练、评估和结果分析方法 学习使用混淆矩阵进行模型性能分析 二、实验环境 编程语言: Python 3.x 深度学习框架: TensorFlow 2.x / Kera 阅读全文
posted @ 2025-10-15 18:22 鳞* 阅读(23) 评论(0) 推荐(0)
摘要: 卷积神经网络(CNN)读书报告: 一、 引言:为何需要卷积神经网络? 在深度学习席卷人工智能领域之前,处理图像、视频等网格化数据对于传统神经网络(如多层感知机)而言是一项极具挑战性的任务。以一张普通的1000x1000像素的彩色图片为例,将其展平作为输入,仅输入层就需要300万个节点。若后续层节点数 阅读全文
posted @ 2025-10-15 18:03 鳞* 阅读(7) 评论(0) 推荐(0)
摘要: import pygame import random import sys 初始化 Pygame pygame.init() 游戏常量 SCREEN_WIDTH = 400 SCREEN_HEIGHT = 600 GRAVITY = 0.25 BIRD_JUMP = -5 PIPE_SPEED = 阅读全文
posted @ 2025-06-20 21:03 鳞* 阅读(57) 评论(0) 推荐(0)
摘要: import jieba from collections import Counter def analyze_liaozhai(text_path, top_n=20): """ 分析聊斋文本的词频 参数: text_path: 聊斋文本文件路径 top_n: 要统计的高频词数量 """ try 阅读全文
posted @ 2025-06-17 22:26 鳞* 阅读(6) 评论(0) 推荐(0)
摘要: 一、学习背景与目标 在当今数字化与智能化快速发展的时代,Python作为一门简洁、高效且功能强大的编程语言,广泛应用于数据分析、人工智能、网络开发、自动化脚本等多个领域。为了提升自身编程能力,适应未来职业发展需求,我开始了Python语言基础的学习之旅。学习初期,我设定了掌握Python基础语法、数 阅读全文
posted @ 2025-06-17 16:37 鳞* 阅读(33) 评论(0) 推荐(0)
摘要: import pygame import random import sys special_number = 3028 初始化pygame pygame.init() 游戏窗口设置 SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 screen = pygame.dis 阅读全文
posted @ 2025-06-17 16:20 鳞* 阅读(17) 评论(0) 推荐(0)
摘要: 8.1 import random def ping_pong_match(): player1_score = 0 player2_score = 0 while True: # 随机决定得分方 winner = random.choice([1, 2]) if winner == 1: play 阅读全文
posted @ 2025-05-21 13:15 鳞* 阅读(32) 评论(0) 推荐(0)
摘要: 7.1 def rewrite_py_file(file_path): try: with open(file_path, 'r', encoding='utf - 8') as f: content = f.read() new_content = "" i = 0 while i < len(c 阅读全文
posted @ 2025-05-17 22:47 鳞* 阅读(39) 评论(0) 推荐(0)
摘要: 5.1 def print_grid(width): plus = '+' dash = ' - ' pipe = '|' space = ' ' horizontal_line = plus + (dash * width + plus) * width + '\n' vertical_line 阅读全文
posted @ 2025-04-20 15:43 鳞* 阅读(31) 评论(0) 推荐(0)