0% found this document useful (0 votes)
16 views

Script Condor - Ipynb - Colaboratory

This document summarizes the steps to install and import necessary packages for an offwrist algorithm file download and analysis. It installs and upgrades the xgboost and wget packages, imports common packages like os and numpy, and downloads sample dependency files from an online source.

Uploaded by

segredosufrn
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Script Condor - Ipynb - Colaboratory

This document summarizes the steps to install and import necessary packages for an offwrist algorithm file download and analysis. It installs and upgrades the xgboost and wget packages, imports common packages like os and numpy, and downloads sample dependency files from an online source.

Uploaded by

segredosufrn
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Script Condor.

ipynb
Pular para o conteúdo principal Comentário Compartilhar
Arquivo Editar Ver Inserir Ambiente de execução Ferramentas Ajuda Última edição em
18 de outubro
Código Texto Conectar

Package installation and upgrade

[ ] !pip install wget


xgboost
# installs
--upgrade
library
# upgrades
for file
package
download
used in offwrist algorithm
!pip install xgboost --upgrade # upgrades package used in offwrist algorithm

Requirement already satisfied: wget in /usr/local/lib/python3.10/dist-packages (3.2)


Requirement already satisfied: xgboost in /usr/local/lib/python3.10/dist-packages (2.0.0)
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from xgboost) (1.23.5)
Requirement already satisfied: scipy in /usr/local/lib/python3.10/dist-packages (from xgboost) (1.11.3)

2) Importing packages

[ ] root
# these
= os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
packages are required for obtaining the path to the current file # path to "this" directory
import sys
import inspect
import os
root = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) # path to "this" directory

[ ] import numpy
pandasas
asnp
pd##mathmatics
data science
library
library
import pandas as pd # data science library

[ ] # dependency download
import wget
URL = "https://github.com/Condor-Instruments/actigraphy-tutorials-sample/blob/master/demo-dependencies.zip?raw=true"
if "demo-dependencies.zip" not in os.listdir():
response = wget.download(URL, "demo-dependencies.zip")

You might also like