Find Jobs
Hire Freelancers

Convert some R code to Python code (<400 lines of code)

£20-250 GBP

Em Andamento
Publicado há quase 9 anos

£20-250 GBP

Pago na entrega
We need five small R files ported from R to Python. The R code is on github ([login to view URL]). We only need three of the classes (SelfLearning.R, LinearDiscriminantClassifier.R, and ICLinearDiscriminantClassifier.R) and the base classes and helper functions they use (NormalBasedClassifier.R, Classifier.R). In total, without comments, this is less than 400 lines of code to be ported to Python. Any publicly available python libraries, and existing code, may be used as part of the solution (but the mechanism of the solution needs to be the same, e.g. the optimization-based solution in LinearDiscriminantClassifier). Upon completion, the following test code (and its python equivalent) should work equivalently in R and Python: # Generate dataset df <- generate2ClassGaussian(d=2,expected=TRUE) df_lab <- df[sample(nrow(df),10),] df_unlab <- df[sample(nrow(df),500),] df_unlab$Class <- NA df_combined <- rbind(df_lab, df_unlab) # Train Classifiers t_sup <- LinearDiscriminantClassifier(Class~., df_lab) t_self <- SelfLearning(Class~., df_combined, method=LinearDiscriminantClassifier) t_ic <- ICLinearDiscriminantClassifier(Class~., df_combined) # Evaluate performance: Squared Loss & Error Rate mean(loss(t_sup,df)) mean(loss(t_self,df)) mean(loss(t_ic,df)) mean(predict(t_sup,df)!=df$Class) mean(predict(t_self,df)!=df$Class) mean(predict(t_ic,df)!=df$Class)
ID do Projeto: 7811831

Sobre o projeto

3 propostas
Projeto remoto
Ativo há 9 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Hello! I have experience with both R and python. It seems like the core of your project is implementing the R algorithms within your classes in python. I can compete this task for you.
£83 GBP em 2 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
ITHelpForAll provides many IT Solutions for the following : - Fresh installation of corporate systems, servers. - Doing systems migrations. - Provide IT services and online support. - Programming languages (C,C++,C#.NET,[login to view URL], PHP, Python). - Training for different Systems and platforms (windows, Linux, vmware).
£150 GBP em 3 dias
5,0 (1 avaliação)
2,7
2,7
3 freelancers estão ofertando em média £161 GBP for esse trabalho
Avatar do Usuário
A proposal has not yet been provided
£194 GBP em 3 dias
5,0 (6 avaliações)
3,1
3,1

Sobre o cliente

Bandeira do(a) AUSTRIA
Vienna, Austria
0,0
0
Método de pagamento verificado
Membro desde jun. 6, 2015

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.