我有关于调整随机森林分类器的基本问题.树木的数量与树木深度之间是否有任何关系?树深度是否必须小于树木的数量?
我对Web应用程序比较陌生,因此我刚刚开始使用Angular2(没有使用angularJS)和Typescript.我正在尝试使用Zingchart绘制图表.我经历了5分钟的快速启动以及angular2页面中的教程,并且对它的工作方式有了一个很好的了解.我按照Zingchart页面上的说明使用这两个工具(https://blog.zingchart.com/2016/03/16/angular-2-example-zingchart/)在网页上创建了一个图表.但是,我似乎遇到了问题.1)我无法从@ angular/core导入AfterView.虽然页面说我必须使用angular2/core我使用@ angular/core作为源文件夹来导入模块.angular2/core未得到认可.2)当有绑定到zingchart对象的函数(例如 - zingchart.render(),zingchart.exec())时,会出现一个错误,指出无法找到zingchart.我也不确定这里出了什么问题.
import { Component, NgZone, AfterViewInit, OnDestroy } from '@angular/core';
class Chart {
id: String;
data: Object;
height: any;
width: any;
constructor(config: Object) {
this.id = config['id'];
this.data = config['data'];
this.height = config['height'] || 300;
this.width = config['width'] || 600;
}
}
@Component({
selector : 'zingchart',
inputs : ['chart'],
template : `
<div id='{{chart.id}}'></div>
`
})
class ZingChart implements AfterViewInit, OnDestroy {
chart : Chart;
constructor(private zone:NgZone) {
}
ngAfterViewInit() {
this.zone.runOutsideAngular(() => { …Run Code Online (Sandbox Code Playgroud)