Skip to content
Advertisement

Tag: machine-learning

Cross Validation with coco data format json files

I am a newbie ML learner and trying semantic image segmentation on google colab with COCO data format json and lots of images on google drive. update I borrowed this code as a starting point. So my code on colab is pretty much like this. https://github.com/akTwelve/tutorials/blob/master/mask_rcnn/MaskRCNN_TrainAndInference.ipynb /update I am splitting an exported json file into 2 jsons (train/validate with 80/20

Decision tree with different split criterion than information gain

I’d like to create a decision tree in python with a different split criterion than information gain, something like “1-information gain” (something like the opposite of impurity measure, like as similarity measure). Does already exist something like this? paper included. Thanks Answer Yes, it exists. There are many research papers: https://pdfs.semanticscholar.org/5e44/d49b2268421d7ddf09d68be9aa689359b772.pdf https://www.springerprofessional.de/en/splitting-method-for-decision-tree-based-on-similarity-with-mixe/16031946

tensorflow error when installing turicreate?

When I install turicreate package, it gives me the following error: which I encountered the same when installing tensorflow 2.0.0. And I managed to install tensorflow2 with modification to the version(add a ‘a0′,’b0′,’b1’ after ‘2.0.0’) using pip3 install tensorflow==2.0.0a0. However, I still cannot pass the installation of turicreate even with tensorflow2.0.0a0 installed and result in the same ‘tensorflow error’ shown

RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same

This: Gives the error: RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same Answer You get this error because your model is on the GPU, but your data is on the CPU. So, you need to send your input tensors to the GPU. Or like this, to stay consistent with the rest of your code: The same

Advertisement