Displaying 20 results from an estimated 800 matches similar to: "FW: question about the pt() calculation"
2009 Jul 10
2
predict.glm -> which class does it predict?
Hi,
I have a question about logistic regression in R.
Suppose I have a small list of proteins P1, P2, P3 that predict a
two-class target T, say cancer/noncancer. Lets further say I know that I
can build a simple logistic regression model in R
model <- glm(T ~ ., data=d.f(Y), family=binomial) (Y is the dataset of
the Proteins).
This works fine. T is a factored vector with levels cancer,
2010 May 14
1
debugging substitute function in R 2.11
Dear list,
A while ago I found in the web a function (sadly I can't credit the
author as I don't remember where I picked it up from) whose output is
a dataframe that lists for every object in the global environment its
class, mode, dim & length (where applicable). It is meant to be an
upgrade to the ls () function with a far more informative and detailed
output and it quickly became
2009 Jan 02
3
[LLVMdev] Private headers and testing
2009/1/2 Chris Lattner <clattner at apple.com>
> On Jan 2, 2009, at 12:21 PM, Misha Brukman wrote:
> Do you have a specific example of a unit test that would need these? I
> really think these should stay private.
>
Let's take lib/Transforms/Utils/CodeExtractor.cpp . The public interface
for it is in include/llvm/Transform/Utils/FunctionUtils.h, with only the
high-level
2004 Dec 20
1
faster row by row data frame processing
Dear R users,
I have a data frame with a few thousand rows and several hundred
numeric columns (plus a date column). For each row (day), I want to
assign +/- 1 to the highest X absolute values, 0 to the other values,
and save all that in a separate data frame.
I have a working solution (below), however I find it rather slow. Is
there something I could do to increase the speed? (The code is
2006 May 05
6
RJS implementation question
Why is RJS so dependant on programatic creation of Javascript?
RHTML is a great implementation in that it puts HTML first, and Ruby
second. I would have thought RJS would be the same way: a .js with ERb
helpers for generating Javascript functions.
RJS putting Javascript second means:
- I have to learn a whole new set of commands to use Scriptaculous.
- Developers have to constantly chase the
2009 Mar 15
1
cbind(NULL,zoo.object)?
Folks,
I often build up R objects starting from NULL and then repeatedly
using rbind() or cbind(). This yields code like:
a <- NULL
for () {
onerow <- craft one more row
a <- rbind(a, onerow)
}
This works because rbind() and cbind() are forgiving when presented
with a NULL arg: they act like nothing happened, and you get
all.equal(x,rbind(NULL,x)) or all.equal(x,cbind(NULL,x)).
2009 Sep 09
2
InvalidArgumentError throw using Turkish stemmer and posting text "'leri"
Hi all,
I've come across a very strange bug with Xapian 1.0.9.0 and the Turkish
query parser when trying to index a string (as posting) that looks like
this: "...bir araya getiren CD'leri son teknolojiyle piyasaya...". The
actual offending bit of the string is: 'leri
It throws the message I have shown below. The real annoyance is that I can't
seem to catch it because it
2007 Jun 18
6
Something like rcov but more explicit?
Hey list,
Does anything exist that can show me which lines are explicitly tested? RCov
is great, but it doesn''t really give a sense of _actual_ coverage, indeed,
there is no guarantee that functions executed were in fact called as the
result of a line being tested.
I know nothing of the rspec internals, but would a simple list of executed
lines be a relatively simple feature to add?
2007 Jun 21
4
should_receive stubs methods?
Hey,
I''m using rspec and rails and have a spec that tests if a before_filter is
executed, I also have a spec that tests if a method called by the filter is
executed. It appears however that when I should_receive something, it is no
longer actually called when I fire the http request. I''m not sure how, or
where exactly I should manually fire the filter, either before or after the
2006 Oct 31
0
4529113 Leitch refclock driver should set precision
Author: blu
Repository: /hg/zfs-crypto/gate
Revision: 9dfbca422b39aadbbb66a2a06662c20916e08edb
Log message:
4529113 Leitch refclock driver should set precision
Files:
update: usr/src/cmd/xntpd/xntpd/refclock_leitch.c
2007 Jul 25
5
MockCov: Proof of concept
Hey list,
RSpec is great, I''ve been using it at work for a couple of months now. One
gripe I have is that I find it hard to know exactly to what extent my code
is covered by the specs. I am aware of RCov and Heckle; they''re great, but
I''d like to demonstrate another perspective of coverage analysis I''ve hacked
up.
The perspective is that of what is mocked and
2009 Aug 21
1
LASSO: glmpath and cv.glmpath
Hi,
perhaps you can help me to find out, how to find the best Lambda in a
LASSO-model.
I have a feature selection problem with 150 proteins potentially
predicting Cancer or Noncancer. With a lasso model
fit.glm <- glmpath(x=as.matrix(X), y=target, family="binomial")
(target is 0, 1 <- Cancer non cancer, X the proteins, numerical in
expression), I get following path (PICTURE
2005 Apr 21
1
Samba on Windows?
Has anyone successfully ported or built SAMBA under Windows XP or NT?
Yes, I know that Samba was created to emulate that which Windows already
contains. So why (you ask) would we want to run Samba under Windows instead
of MS-CIFS? We have a non-Windows RAID device (not NTFS or FAT32) which is
accessed by XP and NT servers using a propritetary interface (a user-mode
application, not a
2006 Aug 31
2
lib/* doesn't get reloaded in development
Hi,
Am I right in thinking that whatever is in your lib/ folder doesn''t get
reloaded on each request in dev mode?
Jeroen
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2011 Nov 12
1
Using require_relative to speed up rspec require time.
Hi,
I noticed recently that require ''rspec'' on my machine was taking close
to half a second. That''s not a huge amount of time, but it is still
the single slowest part of my test suite.
It boils down to Ruby 1.9''s rather slow require. I''m using 1.9.3, but
I''d still like to shave off some of the require time.
As an experiment, I went into
2007 Jun 27
1
rspec_on_rails: assert_select wrapper doesn''t play nice with XML
Hey,
I''m using rspec and rspec_on_rails to test some RSS feed views, the problem
is that the specs spew out messy warnings when they run:
ignoring attempt to close channel with link
opened at byte 61, line 3
closed at byte 141, line 5
attributes at open: {}
text around open: "ss version=\"2.0\">\n <channel>\n <title"
text around close:
2010 Aug 11
3
Running something without a loop when the result from the previous iteration is require for the current iteration
Hello Everyone!
Here's what I'm trying to do. I'm working on generating occurrences of
precipitation based upon precipitation occurrence for a station during the
previous day and two stations that have already been generated by joint
probablities and 1st order Markov chains or by the same generation process.
This has to be done for each remaining stations for each month.
> genmat
2007 Jun 15
1
Problems with RCov and Rails
Hey list,
I''m trying to use the rcov integration that rspec provides in my Rails
application. As per the documentation on the website, I''ve created
the following rake task:
lib/tasks/specs_with_rcov.rake:
require ''spec/rake/spectask''
desc "Run all specs with rcov"
Spec::Rake::SpecTask.new(''specs_with_rcov'') do |t|
t.rcov = true
2005 Sep 13
2
Patches I forgot to send last night, pt. 1
Patch for RubyConstants.i to add ImageList constants
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2005 Sep 14
1
Patches I missed, pt. 2
StatusBar.i -- Adds a typemap to return a wxRect structure. You''ll
really want to go over this to make sure it''s correct. I don''t have a
sample but it did make part of one of the bigdemo samples work a little
better. If you want to put this on the back-burner until we have a
chance to test it more fully I''d understand completely.
One of the things