Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

cowch

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cowch - npm Package Compare versions

Comparing version
0.1
to
0.2
+75
-30
cowch/__init__.py

@@ -96,2 +96,26 @@ def pr1():

table(predict(mod2,model2_scores),iris[,5])
chatgpt
# Load the iris dataset
data(iris)
# Select the numeric columns of the dataset
numeric_cols <- c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width")
iris_numeric <- iris[numeric_cols]
#iris_numeric <- iris[1:4]
# Perform PCA on the dataset
pca <- prcomp(iris_numeric, center = TRUE, scale. = TRUE)
# Print the summary of the PCA results
summary(pca)
biplot(pca)
screeplot(pca,type="lines")
# Plot the first two principal components
#plot(pca$x[,1], pca$x[,2], col = iris$Species)

@@ -173,12 +197,10 @@

height<-c(102,117,105,141,135,115,138,144,137,100,131,119,115,121,113)
weight<-c(61,46,62,54,60,69,51,50,46,69,48,56,64,48,59)
student<-lm(weight~height)
student
predict(student,data.frame(height=199),interval="confidence")
plot(student)
student
data("wrapbreaks")
head(warpbreaks)
summary("warpbreaks")
model_1 <- aov(breaks~wook+tension,data=warpbreaks)
summary(model_1)
plot(model_1)
model_2 <- aov(breaks~wool+tension+wool:tension,data=warpbreaks)
model

@@ -190,20 +212,16 @@ """)

Practical 8 Principal of Hypothesis testing
dataf <- seq(1,20,by = 1)
dataf
mean(dataf)
a <- t.test(dataf.alternate = "two.sided",mu=10,conf.int=0.95)
#practical 8 hypothesis
dataset1<-c(12,123,13,434,2342,1231,3424,2343)
dataset2 <-c(323,234,455,54534)
dataset1
dataset2
mean(dataset1)
mean(dataset2)
sd(dataset1)
sd(dataset2)
a<-t.test(dataset1,dataset2,alternate="two.sided",mu=10,conf.int=0.95)
a
a$p.value
a$statistic
(10.5-10)/sd(dataf)/sqrt(length(dataf))
length(dataf)
dataf
dataf <- seq(1,20,by=1)
length(dataf)
t.test(x,mu)
""")

@@ -214,16 +232,43 @@

Practical No 9 RUN
Practical No 9 RUN Analysis variance
# import inbuilt dataset
data("warpbreaks")
head("warpbreaks")
head(warpbreaks)
summary("warpbreaks")
model_1<-aov(breaks~wool+tension,data=warpbreaks)
model_1 <- aov(breaks~wool+tension,data=warpbreaks)
summary(model_1)
plot(model_1)
model_2<-aov(breaks~wool+tension+wool:tension,data=warpbreaks)
summary(model_2)
plot(model_2)
model_2 <- aov(breaks~wool+tension+wool:tension,data=warpbreaks)
model
""")
def csv():
print("""
create csv file
# Create a data frame
#create a CSV file student.csv file with fields (name ,roll no, gender, tmarks)
student <- data.frame(
roll_no = 1:5,
name = c("John", "Jane", "Bob", "Alice", "Tom"),
age = c(25, 32, 19, 41, 28),
gender = c("male","male","female","female","male"),
tmarks = c(67,25,74,77,57)
)
# Write the data frame to a CSV file
write.csv(student, "student.csv", row.names = FALSE)
# import and store the dataset in data1
data <- read.csv("student.csv")
print(data)
""")
def pr10():

@@ -230,0 +275,0 @@ print("""

Metadata-Version: 2.1
Name: cowch
Version: 0.1
Version: 0.2
Summary: This package dosen't make any sense to download

@@ -5,0 +5,0 @@ Home-page: UNKNOWN

+6
-6

@@ -1,6 +0,6 @@

cowch/__init__.py,sha256=4x7Y59Xd12xCsPR_c3VQrxdrJn4YhxpFIdBhHy7bB4Y,6604
cowch-0.1.dist-info/License.txt,sha256=jPpqoSyKJrFAxbicO4pTqBZ9GxHXPBwnJhYgUiZFu_0,7
cowch-0.1.dist-info/METADATA,sha256=FDbcmAIRvKH2YSz1D5YzGWQibRZw_8qyz2ZMVP2_DSs,360
cowch-0.1.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
cowch-0.1.dist-info/top_level.txt,sha256=2kLQhYjhuvI7s3gM3dUhyswvMObxMLjhIb4kN-bMPng,6
cowch-0.1.dist-info/RECORD,,
cowch/__init__.py,sha256=f3XR4IB5w44ll7GEvDTlAG_ArJptEMU7S6RmoBVO2kM,7721
cowch-0.2.dist-info/License.txt,sha256=jPpqoSyKJrFAxbicO4pTqBZ9GxHXPBwnJhYgUiZFu_0,7
cowch-0.2.dist-info/METADATA,sha256=Mj4qYa1kEkMxS57YxhmyQdQ8Pc7kJSMtpkIqcerA3Xw,360
cowch-0.2.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
cowch-0.2.dist-info/top_level.txt,sha256=2kLQhYjhuvI7s3gM3dUhyswvMObxMLjhIb4kN-bMPng,6
cowch-0.2.dist-info/RECORD,,