You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/05/29 14:11:40 UTC

[dolphinscheduler-mlflow] branch main updated: [ci] Add CI about license and asf.yaml (#2)

This is an automated email from the ASF dual-hosted git repository.

zhongjiajie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-mlflow.git


The following commit(s) were added to refs/heads/main by this push:
     new b657412  [ci] Add CI about license and asf.yaml (#2)
b657412 is described below

commit b6574121841886be03d50f3807b45463eca6f6bf
Author: Jiajie Zhong <zh...@gmail.com>
AuthorDate: Sun May 29 22:11:36 2022 +0800

    [ci] Add CI about license and asf.yaml (#2)
    
    * Add missing license header
    * only push to the main branch run license CI
---
 .asf.yaml                                        | 41 ++++++++++++++++++++++++
 .github/workflows/license.yaml                   | 41 ++++++++++++++++++++++++
 .gitignore                                       | 17 ++++++++++
 .licenserc.yaml                                  | 29 +++++++++++++++++
 NOTICE                                           |  2 ++
 Project-AutoML/automl/__init__.py                | 17 ++++++++++
 Project-AutoML/automl/data.py                    | 17 ++++++++++
 Project-AutoML/automl/metrics.py                 | 17 ++++++++++
 Project-AutoML/automl/mod/__init__.py            | 16 +++++++++
 Project-AutoML/automl/mod/mod_autosklearn.py     | 17 ++++++++++
 Project-AutoML/automl/mod/mod_flaml.py           | 17 ++++++++++
 Project-AutoML/automl/mod/tool.py                | 17 ++++++++++
 Project-AutoML/automl/params.py                  | 17 ++++++++++
 Project-AutoML/conda.yaml                        | 19 ++++++++++-
 Project-AutoML/predictor.py                      | 17 ++++++++++
 Project-AutoML/train.py                          | 17 ++++++++++
 Project-BasicAlgorithm/conda.yaml                | 17 ++++++++++
 Project-BasicAlgorithm/core/__init__.py          | 16 +++++++++
 Project-BasicAlgorithm/core/data.py              | 17 ++++++++++
 Project-BasicAlgorithm/core/metrics.py           | 17 ++++++++++
 Project-BasicAlgorithm/core/training/__init__.py | 16 +++++++++
 Project-BasicAlgorithm/core/training/lightgbm.py | 17 ++++++++++
 Project-BasicAlgorithm/core/training/lr.py       | 17 ++++++++++
 Project-BasicAlgorithm/core/training/params.py   | 17 ++++++++++
 Project-BasicAlgorithm/core/training/svm.py      | 17 ++++++++++
 Project-BasicAlgorithm/core/training/xgboost.py  | 17 ++++++++++
 Project-BasicAlgorithm/core/utils.py             | 17 ++++++++++
 Project-BasicAlgorithm/train.py                  | 17 ++++++++++
 README.md                                        |  2 ++
 29 files changed, 521 insertions(+), 1 deletion(-)

diff --git a/.asf.yaml b/.asf.yaml
new file mode 100644
index 0000000..a6ec73f
--- /dev/null
+++ b/.asf.yaml
@@ -0,0 +1,41 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+github:
+  description: MLFlow examples for Apache Dolphinscheduler
+  homepage: https://dolphinscheduler.apache.org/
+  labels:
+    - dolphinscheduler
+    - MLops
+  enabled_merge_buttons:
+    squash: true
+    merge: false
+    rebase: false
+  protected_branches:
+    main:
+      required_status_checks:
+        strict: true
+      required_pull_request_reviews:
+        dismiss_stale_reviews: true
+        required_approving_review_count: 1
+
+notifications:
+  commits:      commits@dolphinscheduler.apache.org
+  issues:       commits@dolphinscheduler.apache.org
+  pullrequests: commits@dolphinscheduler.apache.org
+  pullrequests_status:  commits@dolphinscheduler.apache.org
+  pullrequests_comment: commits@dolphinscheduler.apache.org
\ No newline at end of file
diff --git a/.github/workflows/license.yaml b/.github/workflows/license.yaml
new file mode 100644
index 0000000..9e89543
--- /dev/null
+++ b/.github/workflows/license.yaml
@@ -0,0 +1,41 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name: License
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - main
+    paths-ignore:
+      - '**/*.md'
+
+concurrency:
+  group: lc-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: true
+
+jobs:
+  check-license:
+    runs-on: ubuntu-latest
+    timeout-minutes: 30
+    steps:
+      - uses: actions/checkout@v2
+      - name: Check License Header
+        uses: apache/skywalking-eyes@main
diff --git a/.gitignore b/.gitignore
index b6e4761..bc0695d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 # Byte-compiled / optimized / DLL files
 __pycache__/
 *.py[cod]
diff --git a/.licenserc.yaml b/.licenserc.yaml
new file mode 100644
index 0000000..fcc66cd
--- /dev/null
+++ b/.licenserc.yaml
@@ -0,0 +1,29 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+header:
+  license:
+    spdx-id: Apache-2.0
+    copyright-owner: Apache Software Foundation
+
+  paths-ignore:
+    - NOTICE
+    - LICENSE
+    - '**/*.md'
+    - MLproject
+
+  comment: on-failure
\ No newline at end of file
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 0000000..4730fea
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,2 @@
+Apache DolphinScheduler
+Copyright 2019-2022 The Apache Software Foundation
diff --git a/Project-AutoML/automl/__init__.py b/Project-AutoML/automl/__init__.py
index ec115d8..b20f60e 100644
--- a/Project-AutoML/automl/__init__.py
+++ b/Project-AutoML/automl/__init__.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import logging
 import warnings
 
diff --git a/Project-AutoML/automl/data.py b/Project-AutoML/automl/data.py
index e38c153..3cd9a9a 100644
--- a/Project-AutoML/automl/data.py
+++ b/Project-AutoML/automl/data.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import os
 from logging import getLogger
 
diff --git a/Project-AutoML/automl/metrics.py b/Project-AutoML/automl/metrics.py
index b032a00..e0aa44d 100644
--- a/Project-AutoML/automl/metrics.py
+++ b/Project-AutoML/automl/metrics.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import pickle
 
 from sklearn.metrics import classification_report
diff --git a/Project-AutoML/automl/mod/__init__.py b/Project-AutoML/automl/mod/__init__.py
index e69de29..cf817e0 100644
--- a/Project-AutoML/automl/mod/__init__.py
+++ b/Project-AutoML/automl/mod/__init__.py
@@ -0,0 +1,16 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
diff --git a/Project-AutoML/automl/mod/mod_autosklearn.py b/Project-AutoML/automl/mod/mod_autosklearn.py
index a523405..e13b715 100644
--- a/Project-AutoML/automl/mod/mod_autosklearn.py
+++ b/Project-AutoML/automl/mod/mod_autosklearn.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import pickle
 
 import numpy as np
diff --git a/Project-AutoML/automl/mod/mod_flaml.py b/Project-AutoML/automl/mod/mod_flaml.py
index 819f878..d371b1f 100644
--- a/Project-AutoML/automl/mod/mod_flaml.py
+++ b/Project-AutoML/automl/mod/mod_flaml.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import pickle
 
 import numpy as np
diff --git a/Project-AutoML/automl/mod/tool.py b/Project-AutoML/automl/mod/tool.py
index 6248483..ba74757 100644
--- a/Project-AutoML/automl/mod/tool.py
+++ b/Project-AutoML/automl/mod/tool.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 class Tool:
     model_path = None
 
diff --git a/Project-AutoML/automl/params.py b/Project-AutoML/automl/params.py
index 829dcdb..d42faf8 100644
--- a/Project-AutoML/automl/params.py
+++ b/Project-AutoML/automl/params.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import json
 import warnings
 from logging import getLogger
diff --git a/Project-AutoML/conda.yaml b/Project-AutoML/conda.yaml
index f74bba4..4691fab 100644
--- a/Project-AutoML/conda.yaml
+++ b/Project-AutoML/conda.yaml
@@ -1,4 +1,21 @@
-name: MLflow-AutoML 
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: MLflow-AutoML
 channels:
   - https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
 dependencies:
diff --git a/Project-AutoML/predictor.py b/Project-AutoML/predictor.py
index 2351e4f..68872b7 100644
--- a/Project-AutoML/predictor.py
+++ b/Project-AutoML/predictor.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 from mlflow.pyfunc import PythonModel
 
 
diff --git a/Project-AutoML/train.py b/Project-AutoML/train.py
index 10d13a4..269f496 100644
--- a/Project-AutoML/train.py
+++ b/Project-AutoML/train.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import logging
 
 import click
diff --git a/Project-BasicAlgorithm/conda.yaml b/Project-BasicAlgorithm/conda.yaml
index 1764a19..d3aef26 100644
--- a/Project-BasicAlgorithm/conda.yaml
+++ b/Project-BasicAlgorithm/conda.yaml
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 name: sklearn
 channels:
   - https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
diff --git a/Project-BasicAlgorithm/core/__init__.py b/Project-BasicAlgorithm/core/__init__.py
index e69de29..cf817e0 100644
--- a/Project-BasicAlgorithm/core/__init__.py
+++ b/Project-BasicAlgorithm/core/__init__.py
@@ -0,0 +1,16 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
diff --git a/Project-BasicAlgorithm/core/data.py b/Project-BasicAlgorithm/core/data.py
index 6e59963..777354d 100644
--- a/Project-BasicAlgorithm/core/data.py
+++ b/Project-BasicAlgorithm/core/data.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import os
 
 import pandas as pd
diff --git a/Project-BasicAlgorithm/core/metrics.py b/Project-BasicAlgorithm/core/metrics.py
index 37a442c..55283c3 100644
--- a/Project-BasicAlgorithm/core/metrics.py
+++ b/Project-BasicAlgorithm/core/metrics.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 from sklearn.metrics import classification_report
 
 
diff --git a/Project-BasicAlgorithm/core/training/__init__.py b/Project-BasicAlgorithm/core/training/__init__.py
index e69de29..cf817e0 100644
--- a/Project-BasicAlgorithm/core/training/__init__.py
+++ b/Project-BasicAlgorithm/core/training/__init__.py
@@ -0,0 +1,16 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
diff --git a/Project-BasicAlgorithm/core/training/lightgbm.py b/Project-BasicAlgorithm/core/training/lightgbm.py
index 3c24acd..b0141a0 100644
--- a/Project-BasicAlgorithm/core/training/lightgbm.py
+++ b/Project-BasicAlgorithm/core/training/lightgbm.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import mlflow
 from lightgbm import LGBMClassifier
 from sklearn.pipeline import Pipeline
diff --git a/Project-BasicAlgorithm/core/training/lr.py b/Project-BasicAlgorithm/core/training/lr.py
index cd70b8d..b5babdf 100644
--- a/Project-BasicAlgorithm/core/training/lr.py
+++ b/Project-BasicAlgorithm/core/training/lr.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import mlflow
 from sklearn.linear_model import LogisticRegression
 from sklearn.pipeline import Pipeline
diff --git a/Project-BasicAlgorithm/core/training/params.py b/Project-BasicAlgorithm/core/training/params.py
index a8cbb5a..2073823 100644
--- a/Project-BasicAlgorithm/core/training/params.py
+++ b/Project-BasicAlgorithm/core/training/params.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import inspect
 import json
 import warnings
diff --git a/Project-BasicAlgorithm/core/training/svm.py b/Project-BasicAlgorithm/core/training/svm.py
index 8a4aafa..626a08d 100644
--- a/Project-BasicAlgorithm/core/training/svm.py
+++ b/Project-BasicAlgorithm/core/training/svm.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import mlflow
 from sklearn.pipeline import Pipeline
 from sklearn.svm import SVC
diff --git a/Project-BasicAlgorithm/core/training/xgboost.py b/Project-BasicAlgorithm/core/training/xgboost.py
index b8f9cd7..77db830 100644
--- a/Project-BasicAlgorithm/core/training/xgboost.py
+++ b/Project-BasicAlgorithm/core/training/xgboost.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import mlflow
 from sklearn.model_selection import GridSearchCV
 from sklearn.pipeline import Pipeline
diff --git a/Project-BasicAlgorithm/core/utils.py b/Project-BasicAlgorithm/core/utils.py
index cf1e935..a240e23 100644
--- a/Project-BasicAlgorithm/core/utils.py
+++ b/Project-BasicAlgorithm/core/utils.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import numpy as np
 from sklearn.model_selection import GridSearchCV
 from sklearn.preprocessing import OneHotEncoder, OrdinalEncoder
diff --git a/Project-BasicAlgorithm/train.py b/Project-BasicAlgorithm/train.py
index 31aae37..a5b99d8 100644
--- a/Project-BasicAlgorithm/train.py
+++ b/Project-BasicAlgorithm/train.py
@@ -1,3 +1,20 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you under
+# the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 import click
 import mlflow
 import mlflow.sklearn
diff --git a/README.md b/README.md
index 5d762b0..5431254 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,3 @@
 # dolphinscheduler-mlflow
+
+MLFlow examples for Apache Dolphinscheduler