mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Added Quick Start info
This commit is contained in:
parent
e2c3db4772
commit
f5ebf2ccb7
@ -30,7 +30,7 @@ $ docker pull yandex/tutorial-catboost-clickhouse
|
|||||||
|
|
||||||
This Docker image contains everything you need to run CatBoost and ClickHouse: code, runtime, libraries, environment variables, and configuration files.
|
This Docker image contains everything you need to run CatBoost and ClickHouse: code, runtime, libraries, environment variables, and configuration files.
|
||||||
|
|
||||||
**3.** Make sure the Docker image has been successfully pulled:
|
**2.** Make sure the Docker image has been successfully pulled:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker image ls
|
$ docker image ls
|
||||||
@ -38,14 +38,28 @@ REPOSITORY TAG IMAGE ID CR
|
|||||||
yandex/tutorial-catboost-clickhouse latest 3e5ad9fae997 19 months ago 1.58GB
|
yandex/tutorial-catboost-clickhouse latest 3e5ad9fae997 19 months ago 1.58GB
|
||||||
```
|
```
|
||||||
|
|
||||||
**2.** Start a Docker container based on this image:
|
**3.** Start a Docker container based on this image:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run -it -p 8888:8888 yandex/tutorial-catboost-clickhouse
|
$ docker run -it -p 8888:8888 yandex/tutorial-catboost-clickhouse
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! note "Note"
|
**4.** Install packages:
|
||||||
Example running a Jupyter Notebook with this manual materials to [http://localhost:8888](http://localhost:8888).
|
|
||||||
|
```bash
|
||||||
|
$ sudo apt-get install dirmngr
|
||||||
|
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4
|
||||||
|
|
||||||
|
$ echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" | sudo tee /etc/apt/sources.list.d/clickhouse.list
|
||||||
|
$ sudo apt-get update
|
||||||
|
|
||||||
|
$ sudo apt-get install -y clickhouse-server clickhouse-client
|
||||||
|
|
||||||
|
$ sudo service clickhouse-server start
|
||||||
|
$ clickhouse-client
|
||||||
|
```
|
||||||
|
|
||||||
|
For more information, see [Quick Start](https://clickhouse.yandex/#quick-start).
|
||||||
|
|
||||||
## 1. Create a Table {#create-table}
|
## 1. Create a Table {#create-table}
|
||||||
|
|
||||||
|
@ -44,8 +44,22 @@ yandex/tutorial-catboost-clickhouse latest 3e5ad9fae997 19
|
|||||||
$ docker run -it -p 8888:8888 yandex/tutorial-catboost-clickhouse
|
$ docker run -it -p 8888:8888 yandex/tutorial-catboost-clickhouse
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! note "Примечание"
|
**4.** Установите последнии версии пакетов:
|
||||||
После запуска по адресу [http://localhost:8888](http://localhost:8888) будет доступен Jupyter Notebook с материалами данной инструкции.
|
|
||||||
|
```bash
|
||||||
|
$ sudo apt-get install dirmngr
|
||||||
|
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4
|
||||||
|
|
||||||
|
$ echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" | sudo tee /etc/apt/sources.list.d/clickhouse.list
|
||||||
|
$ sudo apt-get update
|
||||||
|
|
||||||
|
$ sudo apt-get install -y clickhouse-server clickhouse-client
|
||||||
|
|
||||||
|
$ sudo service clickhouse-server start
|
||||||
|
$ clickhouse-client
|
||||||
|
```
|
||||||
|
|
||||||
|
См. подробное описание в [Быстром старте](https://clickhouse.yandex/#quick-start).
|
||||||
|
|
||||||
## 1. Создайте таблицу {#create-table}
|
## 1. Создайте таблицу {#create-table}
|
||||||
|
|
||||||
@ -101,6 +115,7 @@ $ clickhouse client --host 127.0.0.1 --query 'INSERT INTO amazon_train FORMAT CS
|
|||||||
```sql
|
```sql
|
||||||
$ clickhouse client
|
$ clickhouse client
|
||||||
:) SELECT count() FROM amazon_train
|
:) SELECT count() FROM amazon_train
|
||||||
|
|
||||||
SELECT count()
|
SELECT count()
|
||||||
FROM amazon_train
|
FROM amazon_train
|
||||||
|
|
||||||
@ -166,7 +181,7 @@ LIMIT 10
|
|||||||
```
|
```
|
||||||
|
|
||||||
!!! note "Примечание"
|
!!! note "Примечание"
|
||||||
Функция `modelEvaluate` возвращает кортежи (tuple) с исходными прогнозами по классам для моделей с несколькими классами.
|
Функция [modelEvaluate](../query_language/functions/other_functions.md#function-modelevaluate) возвращает кортежи (tuple) с исходными прогнозами по классам для моделей с несколькими классами.
|
||||||
|
|
||||||
Спрогнозируйте вероятность:
|
Спрогнозируйте вероятность:
|
||||||
|
|
||||||
|
@ -782,3 +782,9 @@ SELECT identity(42)
|
|||||||
Используется для отладки и тестирования, позволяет "сломать" доступ по индексу, и получить результат и производительность запроса для полного сканирования.
|
Используется для отладки и тестирования, позволяет "сломать" доступ по индексу, и получить результат и производительность запроса для полного сканирования.
|
||||||
|
|
||||||
[Оригинальная статья](https://clickhouse.yandex/docs/ru/query_language/functions/other_functions/) <!--hide-->
|
[Оригинальная статья](https://clickhouse.yandex/docs/ru/query_language/functions/other_functions/) <!--hide-->
|
||||||
|
|
||||||
|
## modelEvaluate(model_name, ...) {#function-modelevaluate}
|
||||||
|
|
||||||
|
Оценивает внешнюю модель.
|
||||||
|
|
||||||
|
Принимает на вход имя и аргументы модели. Возвращает Float64.
|
||||||
|
Loading…
Reference in New Issue
Block a user