# abaloneagepredictionalgorithm **Repository Path**: assault_team_practice_level1/abaloneagepredictionalgorithm ## Basic Information - **Project Name**: abaloneagepredictionalgorithm - **Description**: 一个简单的鲍鱼年龄预测算法 - **Primary Language**: Python - **License**: Zlib - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-06-20 - **Last Updated**: 2022-11-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: 工程实践 ## README 回归算法模块是coreregressionalgrithm.py, 算法的接口模块是coreregressionalgrithm.py,接口模块中有一个predict_age函数,给该函数传入一个含有8个数字的属组,即可得到预测结果 8位数字的数组,分别是["Length", 'Diameter', 'Height','Whole weight','Shucked weight', 'Viscera weight', 'Shell weight', 'sex'] sex分为M I F,要分别转换为数字1 0 -1 初次运行时间会长一些,因为会进行回归计算,回归计算后将参数保存在一个文件中,之后就调用这个文件中的参数了; 打开main文件,有一个示例。