echarts柱状图

该博客探讨了机器学习中的三种集成方法:Bagging, SMOTEBagging和ESBagging。通过在不同数据集上进行实验,展示了它们在分类任务上的性能。数据表明,这些方法在多个数据集上都有不同的效果,其中某些情况下,SMOTEBagging和ESBagging表现优于传统的Bagging。
摘要由CSDN通过智能技术生成
option = {
    title: {
        // show: true,
        text: 'G-mean',
        // color: 're',
        textStyle: {
            color: 'rgba(251, 38, 30, 1)',
            // fontSize:15,
            // fontWeight: '600',
        },
        subtextStyle:{align: 'center'},
        left:160,
        top:150,
    },
    legend: {
        left:'35%',
        top:150,
        textStyle:{
            fontSize: 10,
            fontWeight: 'bold',
        }
        // fontSize:2,
    },
    tooltip: {},
    dataset: {
        source: [
            ['product', 'Bagging', 'SMOTEBagging', 'ESBagging'],
            // 1
            // ['pima', 0.8429, 0.8433, 0.8584],
            // ['pima', 0.6947, 0.6800, 0.7143],
            ['pima', 0.7770, 0.7713, 0.8076],
            // 2
            // ['glass0', 0.9592, 0.9902, 0.9150],
            // ['glass0', 0.7059, 0.9000, 0.7200],
            ['glass0', 0.7921, 0.9701, 0.8911],
            // 3
            // ['yeast1', 0.7846, 0.7891, 0.8152],
            // ['yeast1', 0.5541, 0.6171, 0.6122],
            ['yeast1', 0.6530, 0.7212, 0.7271],
            // 4
            // ['vehicle1', 0.7797, 0.7539, 0.7773],
            // ['vehicle1', 0.4598, 0.4000, 0.6129],
            ['vehicle1', 0.5794, 0.5395, 0.7213],
            // 5
            // ['haberman', 0.5738, 0.7291, 0.7484],
            // ['haberman', 0.3571, 0.4865, 0.5455],
            ['haberman', 0.5259, 0.6588, 0.7146],
            // 6
            // ['ecoli1', 0.9190, 0.9094, 0.9377],
            // ['ecoli1', 0.7468, 0.6364, 0.5714],
            ['ecoli1', 0.8592, 0.8359, 0.7739],
            // 7
            // ['new-thyroid1', 0.9920, 0.9936, 0.9941],
            // ['new-thyroid1', 0.9524, 0.9524, 0.9524],
            ['new-thyroid1', 0.9535, 0.9535, 0.9535],
            // 8
            // ['segment0', 0.9751, 0.9757, 0.9771],
            // ['segment0', 0.9710, 0.9640, 0.9640],
            ['segment0', 0.9771, 0.9758, 0.9812],
            // 9
            // ['yeast3', 0.9197, 0.9385, 0.9449],
            // ['yeast3', 0.7407, 0.7458, 0.7937],
            ['yeast3', 0.7987, 0.8329, 0.8861],
            // 10
            // ['yeast-1_vs_7', 0.7333, 0.7966, 0.7230],
            // ['yeast-1_vs_7', 0.5714, 0.3636, 0.1429],
            ['yeast-1_vs_7', 0.6325, 0.6177, 0.4262],
            
        ]
    },
    xAxis: {
        type: 'category',
        // splitNumber: 10,
        axisLabel: { 
            interval: 0, 
            rotate: 30,
            textStyle:{
                color:'#333',
            // fontSize: 30,
            // fontWeight:'bold', 
            },
            fontSize: 13,
            fontWeight:'bold',
            
        },
        
    },
    yAxis: {},
    // Declare several bar series, each will be mapped
    // to a column of dataset.source by default.
    series: [
        {type: 'bar'},
        {type: 'bar'},
        {type: 'bar'}
    ],
    
    // toolbox:{
    // //     feature:{
    // //         saveAsImage:{
    // //             pixelRatio:10,
    // //             // backgroundColor:'',
    // //             title: 'picture',
    // //             icon:'',
    // //         },
    // //         ic
    // //     }
    // // },
    
    grid:{
        left:150,
        // right:20,
        width:400,
        height:230,
        bottom:120,
        // top:40,
        containLabel: true,
        
        // borderWidth:10
    }
    
};

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值