From dd6ef86776c22fbc2ef4382ac79db301c358f519 Mon Sep 17 00:00:00 2001 From: Dmitry Ryumin Date: Tue, 8 Oct 2024 19:23:28 +0300 Subject: [PATCH] Delete docs/source/user_guide/notebooks/Untitled2.ipynb --- .../user_guide/notebooks/Untitled2.ipynb | 243 ------------------ 1 file changed, 243 deletions(-) delete mode 100644 docs/source/user_guide/notebooks/Untitled2.ipynb diff --git a/docs/source/user_guide/notebooks/Untitled2.ipynb b/docs/source/user_guide/notebooks/Untitled2.ipynb deleted file mode 100644 index 15e3e94..0000000 --- a/docs/source/user_guide/notebooks/Untitled2.ipynb +++ /dev/null @@ -1,243 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "id": "68a1d2b3-7d8d-4f71-a4e7-b0c121794e43", - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "'1.0.0a38'" - ] - }, - "execution_count": 1, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "import oceanai\n", - "\n", - "oceanai.__release__" - ] - }, - { - "cell_type": "code", - "execution_count": 18, - "id": "b99fe909-9d4e-4583-ad88-72bb2376c958", - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
PathOpennessConscientiousnessExtraversionAgreeablenessNon-NeuroticismCandidate score
Person ID
3300gK3CnzW0.001.mp40.6070700.5918930.5206620.6039380.56572657.985135
1_plk5k7PBEg.003.mp40.5811590.6288220.4666090.6221290.55383257.615230
22d6btbaNdfo.000.mp40.4639910.4188510.4130100.4933290.42309343.622740
\n", - "
" - ], - "text/plain": [ - " Path Openness Conscientiousness Extraversion \\\n", - "Person ID \n", - "3 300gK3CnzW0.001.mp4 0.607070 0.591893 0.520662 \n", - "1 _plk5k7PBEg.003.mp4 0.581159 0.628822 0.466609 \n", - "2 2d6btbaNdfo.000.mp4 0.463991 0.418851 0.413010 \n", - "\n", - " Agreeableness Non-Neuroticism Candidate score \n", - "Person ID \n", - "3 0.603938 0.565726 57.985135 \n", - "1 0.622129 0.553832 57.615230 \n", - "2 0.493329 0.423093 43.622740 " - ] - }, - "execution_count": 18, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "import pandas as pd\n", - "from oceanai.modules.core.core import Core\n", - "\n", - "df = pd.DataFrame({\n", - " \"Path\": [\"_plk5k7PBEg.003.mp4\", \"2d6btbaNdfo.000.mp4\", \"300gK3CnzW0.001.mp4\"],\n", - " \"Openness\": [0.581159, 0.463991, 0.60707],\n", - " \"Conscientiousness\": [0.628822, 0.418851, 0.591893],\n", - " \"Extraversion\": [0.466609, 0.41301, 0.520662],\n", - " \"Agreeableness\": [0.622129, 0.493329, 0.603938],\n", - " \"Non-Neuroticism\": [0.553832, 0.423093, 0.565726]\n", - "})\n", - "\n", - "core = Core()\n", - "\n", - "core._candidate_ranking(df, 20, 25, 10, 10, 35)" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "id": "d1dac92d-c2e4-4b4d-850a-98bd828bbc3d", - "metadata": {}, - "outputs": [ - { - "data": { - "text/markdown": [ - "**[2024-10-06 23:25:29] Загрузка весов нейросетевой модели** " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/markdown": [ - "**[2024-10-06 23:25:29] Загрузка файла \"weights_2022-05-05_11-27-55.h5\" 100.0% ...** " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/markdown": [ - "**--- Время выполнения: 0.254 сек. ---**" - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/plain": [ - "True" - ] - }, - "execution_count": 7, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "from oceanai.modules.lab.audio import Audio\n", - "\n", - "audio = Audio()\n", - "\n", - "audio.path_to_save_ = './models'\n", - "audio.chunk_size_ = 2000000\n", - "\n", - "audio._Audio__load_model_weights(\n", - " url = 'https://download.sberdisk.ru/download/file/400635799?token=MMRrak8fMsyzxLE&filename=weights_2022-05-05_11-27-55.h5',\n", - " force_reload = True,\n", - " info_text = 'Загрузка весов нейросетевой модели',\n", - " out = True, runtime = True, run = True\n", - ")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "2829ee25-d4ca-4eb7-b497-f12d8ab8421b", - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3 (ipykernel)", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.9.13" - } - }, - "nbformat": 4, - "nbformat_minor": 5 -}