我刚从Angular 2 rc4升级到rc6并且遇到了麻烦.
我在控制台上看到以下错误:
Unhandled Promise rejection: Template parse errors:
'cl-header' is not a known element:
1. If 'cl-header' is an Angular component, then verify that it is part of this module.
2. If 'cl-header' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("<main>
[ERROR ->]<cl-header>Loading Header...</cl-header>
<div class="container-fluid">
<cl-feedbackcontai"): AppComponent@1:4
Run Code Online (Sandbox Code Playgroud)
这是我的标题组件:
import { Component } from '@angular/core';
import { Router } from '@angular/router';
// own service
import { AuthenticationService } …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用NG2-Charts的基本示例(http://valor-software.com/ng2-charts/)
我复制粘贴HTML部分
<div style="display: block">
<canvas baseChart
[datasets]="barChartData"
[labels]="barChartLabels"
[options]="barChartOptions"
[legend]="barChartLegend"
[chartType]="barChartType"
(chartHover)="chartHovered($event)"
(chartClick)="chartClicked($event)"></canvas>
</div>
Run Code Online (Sandbox Code Playgroud)
和TypeScript部分
private barChartOptions: any = {
scaleShowVerticalLines: false,
responsive: true
};
private barChartLabels: string[] = ['2006', '2007', '2008', '2009', '2010', '2011', '2012'];
private barChartType: string = 'bar';
private barChartLegend: boolean = true;
private barChartData: any[] = [
{ data: [65, 59, 80, 81, 56, 55, 40], label: 'Series A' },
{ data: [28, 48, 40, 19, 86, 27, 90], label: 'Series B' } …Run Code Online (Sandbox Code Playgroud) 操作系统:Ubuntu 18
Python:Python 3.6
ML流量:1.4
我正在尝试运行 MLflow 项目。这是我的项目:
ML流
conda.yaml
主要.py
准备数据.py
学习.py
项目清单
该项目很大程度上基于此存储库:https://github.com/mlflow/mlflow/tree/master/examples/multistep_workflow
我正在尝试使用 MLflow 项目和 main.py 脚本运行 prep_data 和学习脚本作为入口点。为了执行,我使用以下命令:mlflow run . -P experiment_name=testproject
但我收到以下错误:
Traceback (most recent call last):
File "prep_data.py", line 126, in <module>
prep_data()
File "/home/ubuntu/venv/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/ubuntu/venv/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/ubuntu/venv/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ubuntu/venv/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "prep_data.py", line …Run Code Online (Sandbox Code Playgroud)