algorithm – Matlab mix file simulation result of my genetic model are incorrect

I’m working on a project were I want to generate c code for a motor speed control model using simulink coder. The code has already been generated and some modifications were also did according to what a I want to do: I want to run simulation (executable mix file of code version of the model) … Read more

python – how can I improve the accuracy rate of the below trained model using CNN

I have trained a model using python detect the colors of the gemstone and have built a CNN.Herewith Iam attaching the code of mine.(Referred https://www.kaggle.com) import os import matplotlib.pyplot as plt import seaborn as sn import cv2 from random import randint import numpy as np CLASSES, gems = [], [] # names of classes, count … Read more

python – Changing Shape in Image input to Match that of a Downloaded Model

I am working on a Model downloaded from github that takes as an input an image and begins a Classification process . After taking a deeper look at this model,i figured out that it expect image with type (numpy.ndarray ) and a Shape of (1, 512, 512, 1).The model downloaded predicts on a tfrecord file … Read more

object – Exporting Tensorflow Model – AssertionError: No checkpoint specified (save_path=None); nothing is being restored

I’m using google colab and tensorflow 2.3.0 on a Ubuntu machine, and working through the example from here: Tensorlow2 Training Custom Model This is my code: !python exporter_main_v2.py –input_type image_tensor –pipeline_config_path=models/my_ssd_resnet50_v1_fpn/pipeline.config –trained_checkpoint_dir=/models/my_ssd_resnet50_v1_fpn –output_directory=exported-models/my_model/ I’m getting the following error: 2020-09-06 08:03:23.830447: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1 2020-09-06 08:03:25.844063: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library … Read more

r – Checking the homoscedasticity assumption of an lme model

I have the following lme model, which I am running using the following code: IDRTlme <- lme(Score ~ Group*Condition, random = ~1|ID, data=IDRT) I would like to carry out the levene’s test as follows: leveneTest(residuals(IDRTlme) ~ IDRT$Group) Is this the correct way of carrying out a Levene’s test on an lme output? If not, then … Read more

python – Unable to produce visualisations to calculate topic frequency for LSI model

I am trying to create a graph which shows the frequency of the topics for LSI. I was able to do this for my LDA model using the same code. When I try to visualize my LSI topics I get error messages as shown below. The code to create the models is below: # Import … Read more

machine learning – Keras Dense Model ValueError: logits and labels must have the same shape ((None, 200, 1) vs (None, 1, 1))

I’m new in machine learning and I’m trying to train a model. I’m using this Keras oficial example as a guide to set my dataset and feed it into the model: https://www.tensorflow.org/api_docs/python/tf/keras/utils/Sequence From the training data I have an sliding windows created for a single column and for the labels I have a binary classification … Read more

flutter – Data model failure in dart _TypeError (type ‘_InternalLinkedHashMap’ is not a subtype of type ‘String?’)

I cannot figure out the way to adapt my dart model to my json. I constantly get the error in BreedInfo class, field height: _TypeError (type ‘_InternalLinkedHashMap<String, dynamic>’ is not a subtype of type ‘String?’) I do not know why it does not accept a response if dynamic is supposed to identify the data type … Read more